surrealpatch/sdk/build.rs

17 lines
370 B
Rust
Raw Normal View History

fn main() {
if cfg!(target_arch = "wasm32") {
println!("cargo:rustc-cfg=wasm");
println!("cargo::rustc-check-cfg=cfg(wasm)");
}
if cfg!(any(
feature = "kv-mem",
feature = "kv-fdb",
feature = "kv-tikv",
feature = "kv-rocksdb",
feature = "kv-surrealkv",
)) {
println!("cargo:rustc-cfg=storage");
println!("cargo::rustc-check-cfg=cfg(storage)");
}
}