-
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
Starting from Rust 1.19 (cargo 0.20.0) (next beta), one may use
println!("cargo:rustc-env=ENVVAR=value");
in the build.rs
to define a variable for rustc, allowing code to use
env!("ENVVAR")
vergen
could be extended to support this, so user could read the variables without including OUT_DIR.
Metadata
Metadata
Assignees
Labels
No labels