wgpu_types/env.rs
use alloc::string::String;
/// No-std friendly version of `std::env::var`. Returns `None` if the environment variable is not set
/// or we are in a no-std context.
pub fn var(_key: &str) -> Option<String> {
#[cfg(feature = "std")]
return std::env::var(_key).ok();
#[cfg(not(feature = "std"))]
return None;
}