| Crates.io | crate-paths-cli |
| lib.rs | crate-paths-cli |
| version | 0.2.0 |
| created_at | 2025-06-27 15:23:30.043498+00 |
| updated_at | 2026-01-08 01:01:15.659883+00 |
| description | Cli that builds a tree of a crate's item paths |
| homepage | |
| repository | https://github.com/stayhydated/crate-paths |
| max_upload_size | |
| id | 1728840 |
| size | 74,098 |
A Cargo subcommand to generate path trees from Rust crates.
cargo install crate-paths-cli
Generate a path tree for a crate:
cargo crate-paths --crate-name std --output-path ./std_paths.rs
--output-path has a file extension, writes directly to that file.{crate_name}.rs within it.# Writes to ./std_paths.rs
cargo crate-paths --crate-name std --output-path ./std_paths.rs
# Writes to ./generated/std.rs
cargo crate-paths --crate-name std --output-path ./generated
rustup -> local -> docsrs.--backend rustup: Force usage of Rustup source (for std lib).--backend local: Analyze a local crate in the workspace.--backend docsrs: Fetch metadata from docs.rs.