3 stable releases

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

#376 in Configuration

Download history 164/week @ 2024-11-17 77/week @ 2024-11-24 214/week @ 2024-12-01 110/week @ 2024-12-08 110/week @ 2024-12-15 191/week @ 2024-12-22 573/week @ 2024-12-29 1000/week @ 2025-01-05 879/week @ 2025-01-12 880/week @ 2025-01-19 1080/week @ 2025-01-26 2201/week @ 2025-02-02 2885/week @ 2025-02-09 1057/week @ 2025-02-16 538/week @ 2025-02-23 374/week @ 2025-03-02

4,981 downloads per month
Used in 3 crates

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