mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
19 lines
551 B
Rust
19 lines
551 B
Rust
use marine_rs_sdk_test::generate_marine_test_env;
|
|
use marine_rs_sdk_test::ServiceDescription;
|
|
fn main() {
|
|
let services = vec![(
|
|
"greeting".to_string(),
|
|
ServiceDescription {
|
|
config_path: "Config.toml".to_string(),
|
|
modules_dir: Some("artifacts".to_string()),
|
|
},
|
|
)];
|
|
|
|
let target = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap();
|
|
if target != "wasm32" {
|
|
generate_marine_test_env(services, "marine_test_env.rs", file!());
|
|
}
|
|
|
|
println!("cargo:rerun-if-changed=src/main.rs");
|
|
}
|