3 stable releases

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

#439 in Configuration

Download history 129/week @ 2024-12-17 266/week @ 2024-12-24 937/week @ 2024-12-31 741/week @ 2025-01-07 736/week @ 2025-01-14 972/week @ 2025-01-21 1627/week @ 2025-01-28 2010/week @ 2025-02-04 2880/week @ 2025-02-11 743/week @ 2025-02-18 456/week @ 2025-02-25 720/week @ 2025-03-04 1272/week @ 2025-03-11 1443/week @ 2025-03-18 1290/week @ 2025-03-25 1466/week @ 2025-04-01

5,826 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