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

Function env_var

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

Source from the content-addressed store, hash-verified

10// `.is_some()`, `.is_err()`, `match`, ...) all work identically.
11#[inline]
12pub(crate) fn env_var(name: &str) -> Result<String, std::env::VarError> {
13 #[cfg(target_os = "zkvm")]
14 {
15 let _ = name;
16 Err(std::env::VarError::NotPresent)
17 }
18 #[cfg(not(target_os = "zkvm"))]
19 {
20 std::env::var(name)
21 }
22}
23
24#[inline]
25pub(crate) fn env_var_os(name: &str) -> Option<std::ffi::OsString> {

Callers 14

check.rsFile · 0.85
subst.rsFile · 0.85
def_eq.rsFile · 0.85
is_def_eq_innerMethod · 0.85
whnf.rsFile · 0.85
dump_whnf_fuelMethod · 0.85
lean_ingressFunction · 0.85
tc.rsFile · 0.85
tickMethod · 0.85
inductive.rsFile · 0.85

Calls 1

varFunction · 0.70

Tested by

no test coverage detected