4 releases (2 breaking)
0.2.0 | Jul 31, 2021 |
---|---|
0.1.0 | Jul 3, 2021 |
0.0.1 | Jul 3, 2021 |
0.0.0 | Jan 1, 2020 |
#26 in #temporary
464 downloads per month
Used in 2 crates
7KB
140 lines
temptree: temporary trees of files
lib.rs
:
Temptree creates temporary trees of files:
use temptree::temptree;
let tree = temptree! {
foo: "a",
bar: {
baz: "b",
},
};
let foo_contents = std::fs::read_to_string(tree.path().join("foo")).unwrap();
assert_eq!(foo_contents, "a");
let baz_contents = std::fs::read_to_string(tree.path().join("bar/baz")).unwrap();
assert_eq!(baz_contents, "b");
Dependencies
~1.6–9.5MB
~112K SLoC