ruma-common 0.15.3

Common types for other ruma crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;

fn main() {
    // Set the `ruma_identifiers_storage` configuration from an environment variable.
    if let Ok(value) = env::var("RUMA_IDENTIFIERS_STORAGE") {
        println!("cargo:rustc-cfg=ruma_identifiers_storage={value}");
    }

    println!("cargo:rerun-if-env-changed=RUMA_IDENTIFIERS_STORAGE");

    // 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");
}