Packages / rupm

env-file-tools 0.1.0

Parse .env files: quotes, export, comments, escapes and variable expansion

Install

cargo add env-file-tools --registry rupm

In Ruststudio: Packages, search for env-file-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# env-file-tools

Parse .env files: quotes, export, comments, escapes and variable expansion

Add it with `rupm add env-file-tools` (or `cargo add env-file-tools --registry rupm`).

```rust
let vars = env_file_tools::parse("A=1\nexport B=\"two words\"\n# comment\n")?;
assert_eq!(vars[1], ("B".to_string(), "two words".to_string()));
```