serai/common/env/src/lib.rs

9 lines
261 B
Rust
Raw Normal View History

#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Obtain a variable from the Serai environment/secret store.
pub fn var(variable: &str) -> Option<String> {
// TODO: Move this to Kubernetes
std::env::var(variable).ok()
}