Subcommand to show result of macro expansion
Find a file
2016-06-04 22:22:47 -07:00
src Cargo-expand subcommand 2016-06-04 22:22:47 -07:00
.gitignore Cargo-expand subcommand 2016-06-04 22:22:47 -07:00
.travis.yml Cargo-expand subcommand 2016-06-04 22:22:47 -07:00
Cargo.lock Cargo-expand subcommand 2016-06-04 22:22:47 -07:00
Cargo.toml Cargo-expand subcommand 2016-06-04 22:22:47 -07:00
LICENSE-APACHE Cargo-expand subcommand 2016-06-04 22:22:47 -07:00
LICENSE-MIT Cargo-expand subcommand 2016-06-04 22:22:47 -07:00
README.md Cargo-expand subcommand 2016-06-04 22:22:47 -07:00

cargo-expand

Build Status Latest Version

This is a wrapper around cargo rustc -- --pretty=expanded. Once installed, the command cargo expand prints out the result of macro expansion applied to the current crate.

Installation

Install with cargo install cargo-expand.

This command optionally uses rustfmt to format the expanded output. If rustfmt is not available, the expanded code is not formatted. Install rustfmt with cargo install rustfmt.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in cargo-expand by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.