//! What the rigs need and none of them should spell its own way. Every //! fuzzer and measurement here is run by hand with its parameters in the //! environment, so one reader is shared rather than copied into each target. /// A rig's parameter from the environment, or its default. A switch is /// `env("NAME", 0_u8) != 0`, so `NAME=1` turns it on. pub fn env(name: &str, fallback: T) -> T { std::env::var(name) .ok() .and_then(|value| value.parse().ok()) .unwrap_or(fallback) }