rubicon 3.4.9

Deduplicate globals across shared objects to enable a dangerous form of dynamic linking
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    #[cfg(any(feature = "export-globals", feature = "import-globals"))]
    {
        use std::env;

        // Get the Rust compiler version and set it as an environment variable.
        let rustc_version = rustc_version::version().unwrap();
        println!("cargo:rustc-env=RUBICON_RUSTC_VERSION={}", rustc_version);

        // Pass the target triple.
        let target = env::var("TARGET").unwrap();
        println!("cargo:rustc-env=RUBICON_TARGET_TRIPLE={}", target);
    }
}