mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-04 21:37:47 +03:00
Document new behavior on non-nightly toolchains
This commit is contained in:
parent
db455ab726
commit
a15c4adc14
1 changed files with 5 additions and 3 deletions
|
@ -22,9 +22,11 @@ This command optionally uses [`Pygments`](http://pygments.org/) to colorize the
|
||||||
expanded output. If `Pygments` is not available, the expanded code is not
|
expanded output. If `Pygments` is not available, the expanded code is not
|
||||||
colorized. Install with `pip install Pygments`.
|
colorized. Install with `pip install Pygments`.
|
||||||
|
|
||||||
Cargo expand requires a nightly toolchain because it relies on unstable compiler
|
Cargo expand relies on unstable compiler flags so it requires a nightly
|
||||||
flags. If nightly is not your default toolchain, the `cargo expand` commands
|
toolchain to be installed, though does not require nightly to be the default
|
||||||
shown below will need to be run as `cargo +nightly expand`.
|
toolchain or the one with which cargo expand itself is executed. If the default
|
||||||
|
toolchain is one other than nightly, running `cargo expand` will find and use
|
||||||
|
nightly anyway.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue