Skip to content

A cargo plugin to allow running a command for each package root path in a Rust crate dependency tree.

License

Notifications You must be signed in to change notification settings

anderejd/cargo-walk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo-walk

unsafe forbidden

A cargo plugin to allow running a command for each package root path in a Rust crate dependency tree.

Examples

  • Search all code related to a crate, including dependencies using ripgrep: cargo walk -- rg -C 10 "find me"
  • List all crate roots in the dependency tree: cargo walk echo or cargo walk -- echo
  • List dependencies based on size: cargo walk -- du -d 0 -h | sort -h

Make sure to add -- between cargo walk and the command if it contains - or -- flags.

Installation

cargo install cargo-walk

Changelog

  • 0.1.0 First version. The root path of each crate in the crate dependency tree will be added as the last argument to the command.

About

A cargo plugin to allow running a command for each package root path in a Rust crate dependency tree.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages