Add Note About Cargo Expand Pager

This commit is contained in:
Zicklag 2020-08-12 19:22:01 -05:00 committed by GitHub
parent 4977837fad
commit 968fdbba9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,4 +4,5 @@
- Print the final output of a macro using `cargo rustc --profile=check -- -Zunstable-options --pretty=expanded`
- Alternatively you could install and use [cargo expand](https://github.com/dtolnay/cargo-expand) which adds syntax highlighting to the terminal output.
- Additionally get pager by piping to `less` ( on Unix systems ): `cargo expand --color always | less -R`
- Print output during macro compilation using `eprintln!("hi");`