MCPcopy Create free account
hub / github.com/argumentcomputer/ix / env_var_os

Function env_var_os

crates/kernel/src/lib.rs:25–35  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

23
24#[inline]
25pub(crate) fn env_var_os(name: &str) -> Option<std::ffi::OsString> {
26 #[cfg(target_os = "zkvm")]
27 {
28 let _ = name;
29 None
30 }
31 #[cfg(not(target_os = "zkvm"))]
32 {
33 std::env::var_os(name)
34 }
35}
36
37// =============================================================================
38// LazyLock replacements for diagnostic env-var statics.

Callers 4

perf.rsFile · 0.85
seq_ixon_drop_enabledFunction · 0.85
ixon_ingress_ownedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected