dotenv 0.11.0

A `dotenv` implementation for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate dotenv;
extern crate tempdir;

mod common;

use dotenv::*;

use common::*;

#[test]
fn test_var() {
    let dir = make_test_dotenv().unwrap();

    assert_eq!(var("TESTKEY").unwrap(), "test_val");

    dir.close().unwrap();
}