MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / env_flag

Function env_flag

xtask/src/main.rs:553–564  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

551
552#[cfg(feature = "aot-serializer")]
553fn env_flag(name: &str) -> bool {
554 env::var(name)
555 .map(|value| {
556 let value = value.trim();
557 !value.is_empty()
558 && !matches!(
559 value.to_ascii_lowercase().as_str(),
560 "0" | "false" | "no" | "off"
561 )
562 })
563 .unwrap_or(false)
564}
565
566fn package_size(args: Vec<String>) -> Result<()> {
567 let enforce = args.iter().any(|arg| arg == "--enforce");

Callers 1

llvm_aot_engineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected