mr_env_plus 0.1.0

Environment configuration management for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub use mr_env_macro::EnvConfig;
pub(crate) mod config;
pub mod error;

use error::Error;


pub fn init() -> Result<(), Error> {
    config::ensure_env_loaded()?;
    Ok(())
}

pub fn init_with(path: &str) -> Result<(), Error> {
    config::ensure_env_loaded_with(path)?;
    Ok(())
}