Files

13 lines
281 B
Rust

use anyhow::Result;
fn main() -> Result<()> {
let target_family = std::env::var("CARGO_CFG_TARGET_FAMILY")?;
// Enable local_fs feature when not targeting wasm
if target_family != "wasm" {
println!("cargo:rustc-cfg=feature=\"local_fs\"");
}
Ok(())
}