cargo-deps-order

Crates.iocargo-deps-order
lib.rscargo-deps-order
version0.0.3
sourcesrc
created_at2024-10-21 16:26:16.30623
updated_at2024-10-21 17:40:41.114241
descriptionA Cargo subcommand to list dependencies in a workspace and execute commands on them.
homepage
repositoryhttps://github.com/piot/cargo-deps-order
max_upload_size
id1417704
size20,575
Peter Bjorklund (piot)

documentation

README

🚀 Cargo Deps Order 🦀

Crates.io

Cargo Deps Order is a powerful Cargo subcommand designed to list all dependencies of your Rust project or workspace and execute custom commands on each dependency seamlessly. Whether you're managing a large workspace or a single project, this utility streamlines your workflow with ease and efficiency.

📖 Features

  • List Dependencies: Display all dependencies of your Cargo project or workspace in a clear, leaf-first order.
  • Execute Custom Commands: Run any shell command on each dependency with dynamic placeholders.
  • Wait Between Commands: Specify a pause between command executions to manage resource usage or pacing.

🛠 Installation

📦 Using cargo install

You can easily install cargo-deps-list using Cargo's install command:

cargo install cargo-deps-order

📋 Available Options

  • --workspace-only Description: Show only dependencies within the workspace. Usage:
cargo deps-order --workspace-only
  • --exec <COMMAND> Description: Command to execute for each dependency. Use {} as a placeholder for the dependency name and {version} for the dependency version. Usage:
cargo deps-order --exec "echo {} version {version}"
  • --wait <SECONDS> Description: Number of seconds to wait between executing commands for each dependency. Usage:
cargo deps-order --exec "echo {}" --wait 2
  • -h, --help Description: Print help information. Usage:
cargo deps-order --help
  • -V, --version Description: Print version information. Usage:
cargo deps-order --version
Commit count: 11

cargo fmt