Expand description
§depth
The depth
crate provides a command-line tool for fetching and visualizing dependency trees
for Rust packages using the Crates.io API and the petgraph
crate. With this tool, you can explore
the dependencies of a given Rust package and visualize the relationship between different packages
in a dependency graph.
§Quick Start
Get started with the depth
crate by following these simple steps:
- Install the
depth
tool using Cargo:
cargo install --locked depth
- Use the
depth
command to visualize dependency trees:
# Visualize dependencies at level 1
depth -c crate_name -l 1
or simply:
depth -c crate_name
§Key Features
The depth
crate offers the following key features:
- Fetch and Visualize Dependency Tree: Fetch and visualize the dependency tree for a given Rust package using the Crates.io API.
- Command-Line Tool: Use the
depth
command-line tool to interactively explore and visualize dependencies.
§GitHub Repository
You can access the source code for this crate on GitHub.
§Contributing
Contributions and feedback are welcome! If you’d like to contribute, report an issue, or suggest an enhancement, please engage with the project on GitHub. Your contributions help improve this crate for the community.
Modules§
- cli
- dependency_
graph - dependency_graph
- package
- package
Functions§
- visualize_
dependency_ tree - Visualizes the dependency tree for a given package.