dotenv 0.8.0

A `dotenv` implementation for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate dotenv;

use dotenv::dotenv;
use std::env;

fn main() {
    dotenv().ok();

    for (key, value) in env::vars() {
        println!("{}: {}", key, value);
    }
}