surrealpatch/sdk/build.rs
Maxwell Flitton 0a1a99dc68
Initial commit for SurrealCS (#4458)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: Raphael Darley <raphael.darley@surrealdb.com>
2024-09-04 14:53:37 +01:00

17 lines
398 B
Rust

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",
feature = "kv-surrealcs",
)) {
println!("cargo:rustc-cfg=storage");
println!("cargo::rustc-check-cfg=cfg(storage)");
}
}