dotconf: A super light-weight dotenv library
With less than 20 lines of code of the core part, but meet most of the requirements of a dotenv. JUST KEEP IT SIMPLE!
Examples
Sample .env file:
a = hi # This is a comment
b = -123
c = false
use ;
init.ok // Ignore the error even if `.env` does not exist.
init.expect;
init_with_path.expect;
// Read value with env::var with some simple type conversions
let a = var.to_string.unwrap;
let b = var.to_isize.unwrap;
let c = var.to_bool.unwrap;