https://github.com/softprops/treeline
rust in trees
https://github.com/softprops/treeline
Last synced: over 1 year ago
JSON representation
rust in trees
- Host: GitHub
- URL: https://github.com/softprops/treeline
- Owner: softprops
- License: mit
- Created: 2015-10-19T03:48:42.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T19:50:07.000Z (almost 4 years ago)
- Last Synced: 2025-03-06T16:50:14.905Z (over 1 year ago)
- Language: Rust
- Size: 2.63 MB
- Stars: 25
- Watchers: 5
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# treeline [](https://github.com/softprops/treeline/actions/workflows/main.yml)
> a rust library for visualizing tree like data
[API documentation](https://softprops.github.io/treeline)
## install
Add the following to your `Cargo.toml`
```toml
[dependencies]
treeline = "0.1"
```
## usage
an example program is provided under the "examples" directory to mimic the `tree(1)`
linux program
```bash
$ cargo run --example tree target
Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
Running `target/debug/examples/tree target`
target
└── debug
├── .cargo-lock
├── .fingerprint
│ └── treeline-21a5bdbd42e0b6da
│ ├── dep-example-tree
│ ├── dep-lib-treeline
│ ├── example-tree
│ ├── example-tree.json
│ ├── lib-treeline
│ └── lib-treeline.json
├── build
├── deps
│ └── libtreeline.rlib
├── examples
│ ├── tree
│ └── tree.dSYM
│ └── Contents
│ ├── Info.plist
│ └── Resources
│ └── DWARF
│ └── tree
├── libtreeline.rlib
└── native
```
Doug Tangren (softprops) 2017