scoped-env

Crates.ioscoped-env
lib.rsscoped-env
version2.1.0
sourcesrc
created_at2020-01-31 16:18:21.396329
updated_at2021-01-15 19:41:07.176821
descriptionA lifetime scoped env variable setting
homepage
repositoryhttps://github.com/Nokel81/scoped-env
max_upload_size
id203696
size5,712
Sebastian Malton (Nokel81)

documentation

README

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"
Commit count: 7

cargo fmt