marine-rs-sdk-test/examples/build_rs/build.rs
Valery Antopol 0bf0489ed2
chore: move test-sdk examples from marine repo (#95)
* 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
2023-08-16 20:00:01 +03:00

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");
}