dotenv_plus

Crates.iodotenv_plus
lib.rsdotenv_plus
version
sourcesrc
created_at2024-09-27 10:02:41.265277+00
updated_at2025-02-25 14:05:51.103266+00
descriptionA dotenv solution for Rust
homepagehttps://github.com/alpheustangs/dotenv_plus.rs
repositoryhttps://github.com/alpheustangs/dotenv_plus.rs
max_upload_size
id1388527
Cargo.toml error:TOML parse error at line 24, column 1 | 24 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Alpheus (alpheustangs)

documentation

README

Dotenv+

A dotenv solution for Rust.

Quick Start

Write the environment variables in the env files and access them later using the var function:

KEY=value
use dotenv_plus::{
    DotEnv,
    var,
};

DotEnv::new().run();

assert_eq!(var("RUST_ENV"), "production");

assert_eq!(var("KEY"), "value");
# By default, `RUST_ENV` is set to `development`
RUST_ENV=production cargo run

License

This project is licensed under the terms of the MIT license.

Commit count: 12

cargo fmt