mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-03 21:07:37 +03:00
Document more use cases
This commit is contained in:
parent
861b1e11ff
commit
6b7a8ebec0
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -49,10 +49,18 @@ fn main() {
|
|||
}
|
||||
```
|
||||
|
||||
Or to expand a particular test target:
|
||||
To expand a particular test target:
|
||||
|
||||
`$ cargo expand --test test_something`
|
||||
|
||||
To expand with `rustfmt` different from the one in `$PATH`:
|
||||
|
||||
`$ RUSTFMT=/path/to/rustfmt cargo expand`
|
||||
|
||||
To expand without `rustfmt` even though it is available in `$PATH`:
|
||||
|
||||
`$ RUSTFMT= cargo expand`
|
||||
|
||||
## License
|
||||
|
||||
Licensed under either of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue