| Crates.io | envfile-cargo |
| lib.rs | envfile-cargo |
| version | 0.1.1 |
| created_at | 2025-12-03 13:21:51.818976+00 |
| updated_at | 2025-12-03 13:56:33.127653+00 |
| description | A super fast and lightweight .env loader for Rust |
| homepage | https://github.com/KhaiNguyenHoang/envfile |
| repository | https://github.com/KhaiNguyenHoang/envfile |
| max_upload_size | |
| id | 1964003 |
| size | 5,067 |
Zero-dependency, blazingly fast .env file loader for Rust
Không cần dotenvy, không cần std::env::set_var, chỉ cần một dòng là load xong!
envfile_cargo?| Tính năng | envfile_cargo | dotenvy crate |
|---|---|---|
| Zero dependencies | Yes | No |
Hỗ trợ comment # |
Yes | Yes |
Hỗ trợ giá trị chứa = |
Yes | Yes |
| Trim khoảng trắng tự động | Yes | Yes |
Không tự động ghi đè std::env |
Yes (an toàn hơn) | No (có thể gây side-effect) |
| Dễ test, dễ kiểm soát | Yes | Yes |
| Tốc độ (blazingly fast) | Yes | Yes |
cargo add envfile-cargo