Command-line tool
cargo-expand
brew/cargo-expand
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Show what Rust code looks like with macros expanded
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install cargo-expand
Linux
brew install cargo-expand
Browse
Related command-line tools
- cargo-show-asm
Show assembly, LLVM-IR, MIR, and WASM generated for Rust code - cargo-features-manager
TUI like cli tool to manage the features of your rust-project dependencies - cargo-clone
Cargo subcommand to fetch the source code of a Rust crate - cargo-careful
Execute Rust code carefully, with extra checking along the way - cargo-swift
A cargo plugin to easily build Swift packages from Rust code for use in iOS and macOS applications - cargo-msrv
Find the minimum supported Rust version (MSRV) for your project - cargo-sonar
Helper to transform reports from Rust tooling for code quality, into valid Sonar report - cargo-modules
A cargo plugin for showing a tree-like overview of a crate's modules.
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents