3 stable releases

2.1.0 Jan 15, 2021
2.0.0 Feb 5, 2020
1.0.0 Jan 31, 2020

#493 in Configuration

Download history 196/week @ 2023-11-26 90/week @ 2023-12-03 132/week @ 2023-12-10 252/week @ 2023-12-17 293/week @ 2023-12-24 178/week @ 2023-12-31 274/week @ 2024-01-07 178/week @ 2024-01-14 345/week @ 2024-01-21 350/week @ 2024-01-28 248/week @ 2024-02-04 186/week @ 2024-02-11 191/week @ 2024-02-18 203/week @ 2024-02-25 220/week @ 2024-03-03 57/week @ 2024-03-10

687 downloads per month
Used in ittapi

Custom license

5KB
79 lines

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"

No runtime deps