1
0
Fork 0
ruma/crates/ruma-identity-service-api/build.rs
Kévin Commaille d49509aa78 Introduce ruma_unstable_exhaustive_types cfg setting
Replaces the `unstable-exhaustive-types` cargo feature.
2024-12-09 11:06:07 +01:00

10 lines
331 B
Rust

use std::env;
fn main() {
// Set the `ruma_unstable_exhaustive_types` configuration from an environment variable.
if env::var("RUMA_UNSTABLE_EXHAUSTIVE_TYPES").is_ok() {
println!("cargo:rustc-cfg=ruma_unstable_exhaustive_types");
}
println!("cargo:rerun-if-env-changed=RUMA_UNSTABLE_EXHAUSTIVE_TYPES");
}