rdotenv 0.1.4

A simple rust library for parsing .env files
Documentation
  • Coverage
  • 0%
    0 out of 11 items documented0 out of 7 items with examples
  • Size
  • Source code size: 5.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 190.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • 0xleft/rdotenv
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 0xleft

rdotenv

A very simple .env file parser my rust projects.

Usage

main.rs

use rdotenv::DotEnv;

fn main() {
    let mut env = DotEnv::new();
    env.load();

    println!("{}", env.get("TEST_KEY"));
}

.env

TEST_KEY=TEST_VALUE

output

TEST_VALUE

License

MIT License

Contributing

Feel free.