3 stable releases

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

#500 in Configuration

Download history 218/week @ 2024-02-26 199/week @ 2024-03-04 144/week @ 2024-03-11 186/week @ 2024-03-18 313/week @ 2024-03-25 361/week @ 2024-04-01 282/week @ 2024-04-08 365/week @ 2024-04-15 380/week @ 2024-04-22 77/week @ 2024-04-29 245/week @ 2024-05-06 296/week @ 2024-05-13 261/week @ 2024-05-20 240/week @ 2024-05-27 191/week @ 2024-06-03 248/week @ 2024-06-10

975 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