Hacker News new | past | comments | ask | show | jobs | submit login
What is Rust doing behind the scenes? (docs.rs)
6 points by hyperluz on Dec 10, 2023 | hide | past | favorite | 3 comments



`cargo-inspect` is no longer in development and has been superseded by https://github.com/dtolnay/cargo-expand


Thank you for pointing out to cargo-expand


There 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: