Comments (4)
This seems possibly helpful for people writing proc-macro's to see how they interact? If the original issue is something you want I'd take a look at it.
I'm debugging a proc macro right now which generates a declarative macro invocation. Something's wrong about the generated declarative macro invocation, but it's hard to investigate because the invocation is expanded immediately.
This would certainly be a useful feature to have, at least for debugging proc macros
Although this need could also be solved with #68, by setting the expanded crate to the proc macro crate
from cargo-expand.
I'd like to request this to be an arbitrary level of macro expansion. I am particularly interested in 0
.
For cargo-crev
I had an idea that cargo-expand
could be used for a one-file view of the source code for the purpose of quick code review. I'm mostly interested in mod file
conversion to mod { ... }
from cargo-expand.
I posted a relevant request for implementation for 0 levels: dtolnay/request-for-implementation#6.
from cargo-expand.
I was thinking about this after seeing another question on the rust users forum about order of expansion, obviously this would be slightly different but I wonder if while implementing this feature one could also only expand x
number of macros in order. This seems possibly helpful for people writing proc-macro
's to see how they interact? If the original issue is something you want I'd take a look at it.
from cargo-expand.
Related Issues (20)
- Can cargo-expand only expand procedural-macro, not including declarative macros? HOT 1
- Is there a way to only expand an associated function on a type? HOT 1
- --release flag is broken since cargo now ignores if used with --profile
- format_args HOT 4
- Feature Request : output sources to folder HOT 1
- cargo expand on stable gives "error: no such command: `+nightly`" HOT 2
- serde_derive breaks module path HOT 1
- Updating to syn 2 changed the output HOT 2
- Question: Why doesn't `cargo expand` this derive? HOT 2
- [feature]Follow the `default-run` field in 'Cargo.toml' just like `cargo run`
- Would it make sense to offer an `--hygiene` switch to run `-Zunpretty=expanded,hygiene` internally? HOT 1
- Compile failure on `stable-x86_64-pc-windows-gnu`, but not `stable-x86_64-pc-windows-msvc` HOT 2
- Missing release `1.0.65` in github release page HOT 1
- Failed to install latest version of cargo-expand crate on windows 11
- Latest cargo-expand does not need nightly compiler and does not error? HOT 1
- cargo expand in some case deletes nested braces that are syntactically meaningful HOT 1
- Use cargo expand as a library HOT 2
- Output is unreadable if the terminal uses black text on white background HOT 3
- cargo expand forces to recompile all the dependencies HOT 1
- Correct way of expanding once and get code for each file separately
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-expand.