Hi - I'm working on a project that uses a build.rs. I'd like some way to enable verbose output for it. (In my case, I want to pass the verbose flag onto cmake.)
I was hoping to piggy-back off of rust's term.verbose configuration value, but I can't see a way to access that value from inside build.rs:
-
it's not listed in Environment variables Cargo sets for crates
-
when I inspect
std::env::vars()
from insidebuild.rs
,CARGO_TERM_VERBOSE
is not set, even if I have[term] verbose = true
...inside my
.cargo/config.toml
In general, how do people provide configurable behavior for build.rs? Do people just use env vars, or is there something more rust / cargo specific?