This crate requires a nightly (unstable, experimental) compiler version. To switch to it, you must have Rust installed via Rustup, and run:
rustup default nightly
Run rustup default stable to switch back.
rustup default stable
directory_tree
Run this command in a terminal, in your project's directory:
cargo add directory-tree
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
directory-tree = "0.0.1"
The directory_tree library will be automatically available globally. Read the directory_tree library documentation.
Back to the crate overview.