cargo-expand icon indicating copy to clipboard operation
cargo-expand copied to clipboard

Subcommand to show result of macro expansion

Results 19 cargo-expand issues
Sort by recently updated
recently updated
newest added

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

enhancement

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: ![image](https://github.com/dtolnay/cargo-expand/assets/330628/6e400678-d5d1-4ecb-97c5-11819975de95) 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 ?...