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.
Add this to your Cargo.toml
:
[dependencies]
scoped-env = "2.1.0"