dotenvx/lib.rs
1//! # dotenvx
2//!
3//! A secure environment variable management tool with built-in encryption using ECIES.
4//!
5//! ## Features
6//!
7//! - **Runtime Environment Injection**: Load `.env` files at runtime
8//! - **Built-in Encryption**: ECIES encryption using secp256k1
9//! - **Key Management**: Secure public/private key handling
10//! - **Variable Expansion**: Support for `${VAR:-default}` syntax
11//! - **Command Substitution**: Execute shell commands in `.env` files
12//!
13//! ## Example
14//!
15//! ```rust,no_run
16//! use dotenvx::crypto::Keypair;
17//!
18//! let keypair = Keypair::generate();
19//! println!("Public key: {}", keypair.public_key());
20//! ```
21
22pub mod cli;
23pub mod crypto;
24pub mod parser;
25pub mod services;
26pub mod utils;
27
28pub use crypto::{decrypt, encrypt, Keypair};
29pub use parser::DotenvParser;
30pub use utils::error::{DotenvxError, Result};