mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-11 10:30:18 +00:00
0bf0489ed2
* move related examples * update Cargo.lock * update test macro invocations * update naming + add CI step * add marine download CI step * remove aggressive cargo update * fix ci
19 lines
526 B
Rust
19 lines
526 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: None,
|
|
},
|
|
)];
|
|
|
|
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");
|
|
}
|