cargo-expand
cargo-expand copied to clipboard
Subcommand to show result of macro expansion
When expanding a crate with hundreds of thousands of lines post expansion, the progress can seem to pause for many seconds after printing: ```console Finished dev [unoptimized + debuginfo] target(s)...
Hello, We are trying to debug and learn some complex macros(codegens), but currently, the result from`cargo expand` cannot be compiled(I think it is intended based on the disclaimer). May I...
I know this is an extremely niche thing to want, but the macro im working on fails in doctests where it succeeds in other code. Being able to expand the...
I do not know if this is a bug or if it is intended, but I ran cargo-expand with the latest (cargo-expand 1.0.70 + prettyplease 0.2.15), and it worked just...
Here's a sample screenshot of how `cargo expand` output looks for me:  As you can tell, that's pretty much useless. I have to copy-paste it into an editor to...
```console warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead --> src/main.rs:44:24 | 44 | use std::panic::{self, PanicInfo, UnwindSafe}; | ^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning:...
How would I expand a function impl-ed on a struct? module::struct::function comes up with "WARNING: no such item".
Hi, thanks for the wonderful tool! When working on https://github.com/fzyzcjy/flutter_rust_bridge, cargo expand is used to expand user source code. Currently, only one call is made, and later the modules of...
Hi :) I tried looking at the code base to PR this myself but could not understand where themes are. Would it be possible to add and support https://github.com/catppuccin/bat ?...