2 ms·
What is Rust doing behind the scenes?
- hyperluz 3y agoThere are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle. -- Albert Einstein This tool stands on the shoulders of giants. To work its magic, it runs the following commands: rustc -Zinspect=hir, for retrieving the HIR. rustfmt, for formatting the output. prettyprint, for syntax-highlighting, which is just a wrapper around the awesome syntect and bat crates.
- frankjr 3y ago`cargo-inspect` is no longer in development and has been superseded by https://github.com/dtolnay/cargo-expand https://github.com/dtolnay/cargo-expand
- hyperluz 3y agoThank you for pointing out to cargo-expand