mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-03 21:07:37 +03:00
Include full cargo rustc command in readme
This commit is contained in:
parent
665022ca2f
commit
bd1fb568d9
1 changed files with 12 additions and 3 deletions
15
README.md
15
README.md
|
@ -3,9 +3,18 @@
|
|||
[](https://travis-ci.org/dtolnay/cargo-expand)
|
||||
[](https://crates.io/crates/cargo-expand)
|
||||
|
||||
This is a wrapper around `cargo rustc -- --pretty=expanded`. Once installed, the
|
||||
command `cargo expand` prints out the result of macro expansion and `#[derive]`
|
||||
expansion applied to the current crate.
|
||||
Once installed, the following command prints out the result of macro expansion
|
||||
and `#[derive]` expansion applied to the current crate.
|
||||
|
||||
```console
|
||||
$ cargo expand
|
||||
```
|
||||
|
||||
This is a wrapper around the more verbose compiler command:
|
||||
|
||||
```console
|
||||
$ cargo rustc --profile=check -- -Zunstable-options --pretty=expanded
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue