amberjs 1.17.0

JavaScript/TypeScript runtime built with Rust and V8
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    println!("cargo:rerun-if-changed=build.rs");
    // Linux ELF will not resolve hello.node's undefined napi_* against the
    // main executable unless those symbols are in the dynamic symbol table.
    // A global `-rdynamic` rustflag previously broke rust-crypto, so this is
    // scoped to the `amber` binary only.
    if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {
        println!("cargo:rustc-link-arg-bin=amber=-Wl,--export-dynamic");
        println!("cargo:rustc-link-arg-bin=amber=-Wl,--export-dynamic");
    }
}