2024-08-08 09:46:21 +00:00
|
|
|
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",
|
2024-09-04 13:53:37 +00:00
|
|
|
feature = "kv-surrealcs",
|
2024-08-08 09:46:21 +00:00
|
|
|
)) {
|
|
|
|
println!("cargo:rustc-cfg=storage");
|
|
|
|
println!("cargo::rustc-check-cfg=cfg(storage)");
|
|
|
|
}
|
|
|
|
}
|