mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
10 lines
298 B
Rust
10 lines
298 B
Rust
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
|
|
// Obtain a variable from the Serai environment/secret store.
|
|
pub fn var(variable: &str) -> Option<String> {
|
|
// TODO: Move this to a proper secret store
|
|
// TODO: Unset this variable
|
|
std::env::var(variable).ok()
|
|
}
|