envfile-cargo

Crates.ioenvfile-cargo
lib.rsenvfile-cargo
version0.1.1
created_at2025-12-03 13:21:51.818976+00
updated_at2025-12-03 13:56:33.127653+00
descriptionA super fast and lightweight .env loader for Rust
homepagehttps://github.com/KhaiNguyenHoang/envfile
repositoryhttps://github.com/KhaiNguyenHoang/envfile
max_upload_size
id1964003
size5,067
Nguyễn Hoàng Khải (KhaiNguyenHoang)

documentation

https://docs.rs/envfile

README

awesome_env

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!

Crates.io Downloads License Docs

Tại sao nên dùng 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

Cài đặt

cargo add envfile-cargo

envfile

Commit count: 0

cargo fmt