Crates.io | scoped-env |
lib.rs | scoped-env |
version | 2.1.0 |
source | src |
created_at | 2020-01-31 16:18:21.396329 |
updated_at | 2021-01-15 19:41:07.176821 |
description | A lifetime scoped env variable setting |
homepage | |
repository | https://github.com/Nokel81/scoped-env |
max_upload_size | |
id | 203696 |
size | 5,712 |
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"