scoped-env 2.1.0

A lifetime scoped env variable setting
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented2 out of 3 items with examples
  • Size
  • Source code size: 5.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Nokel81/scoped-env
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Nokel81

scoped-env

A helper struct (mostly for tests) that scopes an environment variable lifetime to that of a rust scope. Useful for setting environment variables that should be local to the test function.

Usage

Add this to your Cargo.toml:

[dependencies]
scoped-env = "2.1.0"