mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
In the future, we should use a proper secret store (not just env variables). This lets us update one block of code and not n in the future.
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()
|
|
}
|