mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-15 15:24:52 +00:00
9 lines
261 B
Rust
9 lines
261 B
Rust
|
#![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()
|
||
|
}
|