#trees #temporary

temptree

Temporary trees of files

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
Download history 28/week @ 2021-09-25 37/week @ 2021-10-02 42/week @ 2021-10-09 15/week @ 2021-10-16 14/week @ 2021-10-23 45/week @ 2021-10-30 6/week @ 2021-11-06 60/week @ 2021-11-13 54/week @ 2021-11-20 23/week @ 2021-11-27 28/week @ 2021-12-04 6/week @ 2021-12-11 15/week @ 2021-12-18 36/week @ 2021-12-25 34/week @ 2022-01-01 14/week @ 2022-01-08

100 downloads per month
Used in 2 crates

CC0 license

7KB
111 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

~150KB

a