binmod-mdk-core 0.1.4

Binmod MDK for Rust
Documentation
1
2
3
4
5
6
7
fn main() {
    // Get the module name (default to "env")
    let module = std::env::var("WASM_IMPORT_MODULE").unwrap_or("env".into());
    
    // Pass it to rustc as a configuration flag
    println!("cargo:rustc-cfg=wasm_import_module=\"{}\"", module);
}