dotconf 0.1.1

A very light-weight dotenv crate
Documentation
  • Coverage
  • 38.46%
    5 out of 13 items documented4 out of 13 items with examples
  • Size
  • Source code size: 8.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.75 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • devfans

dotconf: A super light-weight dotenv library

Examples

Sample .env file:

a = hi
b = -123
c = false
use dotconf::{init, init_with_path};

init().expect("Failed to load env conf file (default: .env)");
init_with_path(".dotenvfile").expect("Failed to load from the specified env conf file");

let a = dotconf::var("a").to_string().unwrap();
let b = dotconf::var("b").to_isize().unwrap();
let c = dotconf::var("c").to_bool().unwrap();