mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
Add fabro-static::EnvVars as the shared registry for fixed environment variable names and migrate env reads, clap env bindings, and subprocess/test allowlists to use it. Add clippy bans for raw std::env lookup APIs so future dynamic env facades must be documented explicitly.
14 lines
380 B
Rust
14 lines
380 B
Rust
#![allow(
|
|
clippy::disallowed_methods,
|
|
reason = "Build scripts run at compile time and read Cargo-provided env vars."
|
|
)]
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=c/capture_argv.c");
|
|
|
|
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {
|
|
cc::Build::new()
|
|
.file("c/capture_argv.c")
|
|
.compile("capture_argv");
|
|
}
|
|
}
|