cargo-whereis

Crates.iocargo-whereis
lib.rscargo-whereis
version0.1.0
sourcesrc
created_at2021-05-19 13:25:21.603034
updated_at2021-05-19 13:25:21.603034
descriptionLocate a crate within a workspace
homepage
repositoryhttps://github.com/coriolinus/whereis
max_upload_size
id399560
size60,913
owners (github:sozu-proxy:owners)

documentation

README

whereis that crate?

When working in large Rust codebases, one occasionally encounters repositories containing dozens or hundreds of individual crates. Rust knows where they all are, due to the definitions in Cargo.toml, but it's not always so obvious to the developer. This tool makes it easy to locate the actual path of a crate.

Usage Examples

Produce the path to a crate in the workspace:

substrate$ cargo whereis --relative sp-offchain
primitives/offchain

Produce the URL of a dependency:

substrate$ cargo whereis --url lazy_static
https://crates.io/crates/lazy_static

Produce either a local filesystem path or a URL if you're not sure:

substrate$ cargo whereis --force parity-scale-codec
https://crates.io/crates/parity-scale-codec
Commit count: 6

cargo fmt