Giter Club home page Giter Club logo

Comments (4)

kangalio avatar kangalio commented on August 21, 2024 2

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.

dpc avatar dpc commented on August 21, 2024

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.

dtolnay avatar dtolnay commented on August 21, 2024

I posted a relevant request for implementation for 0 levels: dtolnay/request-for-implementation#6.

from cargo-expand.

DevinR528 avatar DevinR528 commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.