3 stable releases

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

#473 in Configuration

Download history 492/week @ 2024-07-28 349/week @ 2024-08-04 471/week @ 2024-08-11 1549/week @ 2024-08-18 271/week @ 2024-08-25 262/week @ 2024-09-01 267/week @ 2024-09-08 647/week @ 2024-09-15 737/week @ 2024-09-22 501/week @ 2024-09-29 356/week @ 2024-10-06 339/week @ 2024-10-13 279/week @ 2024-10-20 208/week @ 2024-10-27 118/week @ 2024-11-03 187/week @ 2024-11-10

801 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