use-docker-env 0.0.1

Primitive Docker environment file helpers for RustUse
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented1 out of 14 items with examples
  • Size
  • Source code size: 8.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 556.73 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-docker
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-docker-env

Primitive Docker environment file helpers for RustUse.

This crate parses KEY=value lines, blank lines, and comments. It preserves values as text and does not perform shell expansion or interpolation.

Basic Usage

use use_docker_env::{EnvLine, EnvLineKind};

let line = EnvLine::parse("RUST_LOG=info")?;

assert_eq!(line.kind(), EnvLineKind::Variable);
assert_eq!(line.key(), Some("RUST_LOG"));
assert_eq!(line.value(), Some("info"));
# Ok::<(), Box<dyn std::error::Error>>(())