3 stable releases

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

#411 in Configuration

Download history 142/week @ 2024-03-13 197/week @ 2024-03-20 342/week @ 2024-03-27 359/week @ 2024-04-03 268/week @ 2024-04-10 531/week @ 2024-04-17 160/week @ 2024-04-24 148/week @ 2024-05-01 229/week @ 2024-05-08 316/week @ 2024-05-15 227/week @ 2024-05-22 228/week @ 2024-05-29 186/week @ 2024-06-05 298/week @ 2024-06-12 396/week @ 2024-06-19 1328/week @ 2024-06-26

2,232 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