Crate rubenvy

Source
Expand description

Support for Ruby-style dotenv loading priorities utilizing dotenvy.

§Example

// Load environment variables with the following priority:
// 1. `.env.development.local`
// 2. `.env.local`
// 3. `.env.development`
// 4. `.env`
rubenvy::rubenvy(Environment::Development).unwrap();

Enums§

Environment

Functions§

rubenvy
Load environment variables from .env files based on the provided environment. Will prioritize files in the order described here. Will bubble up all errors from dotenv with the exception of file not found errors which are ignored.
rubenvy_auto
Automatically load environment variables based on the current build configuration.
rubenvy_development
Load the development environment files.
rubenvy_production
Load the production environment files.
rubenvy_test
Load the test environment files.