serai/networks/ethereum/schnorr/build.rs

10 lines
300 B
Rust
Raw Normal View History

2024-09-15 04:57:43 +00:00
use std::{env, fs};
fn main() {
2024-09-15 04:57:43 +00:00
let artifacts_path = env::var("OUT_DIR").unwrap().to_string() + "/ethereum-schnorr-contract";
if !fs::exists(&artifacts_path).unwrap() {
fs::create_dir(&artifacts_path).unwrap();
}
build_solidity_contracts::build("contracts", &artifacts_path).unwrap();
}