Blazingly fast utility library for temporarily changing the current working directory.
This library provides the following features:
The mutex allows this to be safely used across multhreaded tests, where each test will be entering different directories as no two WithDir instances can exist on different threads. However nested instances on the same thread can exist.
```rust use with_dir::WithDir; use std::path::Path;
let path = Path::new("src");
// enter that directory WithDir::new(path).map(|_| { // Current working directory is now src }).unwrap(); // cwd is reset ```
Contributions welcome.
yes.
See LICENSE