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§
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.