cljrs 0.1.249

clojurust CLI — run, repl, compile, and eval
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    // Capture the host rustc version for the ABI handshake: a pinned-package
    // wrapper dylib is only loaded when it was built by the exact same
    // compiler as this binary's runtime crates.
    let rustc = std::env::var("RUSTC").unwrap_or_else(|_| "rustc".to_string());
    let version = std::process::Command::new(rustc)
        .arg("-V")
        .output()
        .map(|o| String::from_utf8_lossy(&o.stdout).trim().to_string())
        .unwrap_or_default();
    println!("cargo:rustc-env=CLJRS_DYLIB_RUSTC={version}");
    println!("cargo:rerun-if-changed=build.rs");
}