14 lines
262 B
Rust
14 lines
262 B
Rust
|
|
||
|
use envconfig::Envconfig;
|
||
|
use lazy_static::lazy_static;
|
||
|
|
||
|
#[derive(Envconfig, Debug)]
|
||
|
pub struct Config {
|
||
|
#[envconfig(from = "BACKEND_DB_URL")]
|
||
|
pub db_url: String,
|
||
|
}
|
||
|
|
||
|
lazy_static! {
|
||
|
pub static ref CONFIG: Config = Config::init_from_env().unwrap();
|
||
|
}
|