Skip to main content

dotenvx_rs/
lib.rs

1//! # Dotenvx
2//!
3//! A library to load environment variables from `.env` files with encrypted mode, and compatible with dotenv api.
4//! # Features
5//! - Load environment variables from `.env` files.
6//! - Support for decrypting environment variables.
7//! - Support for profile environment variables, such as `NODE_ENV`, `RUN_ENV`, `APP_ENV`, `SPRING_PROFILES_ACTIVE`, `STELA_ENV`.
8//! - Override existing environment variables by default because of security consideration.
9//!
10//! # Examples
11//!
12//! ```
13//! use dotenvx_rs::dotenvx;
14//!
15//! dotenvx::dotenv().ok();
16//! ```
17
18pub mod common;
19pub mod dotenvx;
20
21pub use dotenvx::{dotenv, from_path, dotenv_entries, decrypt_dotenvx_item, encrypt_dotenvx_item};