You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following build script will print "" when run with both cargo build and cargo build --release.
use std::env;fnmain(){ifletOk(s) = env::var("CARGO_CFG_DEBUG_ASSERTIONS"){panic!("\"{}\"", s);}else{panic!("CARGO_CFG_DEBUG_ASSERTIONS not set");}}
I would expect the CARGO_CFG_DEBUG_ASSERTIONS environment variable to be unset in release mode (where cfg!(debug_assertions) is false by default).
Version info: cargo 1.30.0-nightly (b917e3524 2018-09-09)
The text was updated successfully, but these errors were encountered:
ecstatic-morse
changed the title
$CARGO_CFG_DEBUG_ASSERTIONS is set to the empty string in both debug and release modes
$CARGO_CFG_DEBUG_ASSERTIONS is set to the empty string in build scripts for both debug and release modes
Oct 6, 2018
The following build script will print
""
when run with bothcargo build
andcargo build --release
.I would expect the
CARGO_CFG_DEBUG_ASSERTIONS
environment variable to be unset in release mode (wherecfg!(debug_assertions)
is false by default).Version info:
cargo 1.30.0-nightly (b917e3524 2018-09-09)
The text was updated successfully, but these errors were encountered: