Code Monkey home page Code Monkey logo

Comments (6)

koivunej avatar koivunej commented on June 15, 2024

Hi and great to hear you've found this useful! I made this as a sort of trial with the very first proc-macro supports when it came out, so there are probably lot of updates to be made.

If you are interested contributing changes I'd be happy to review. Otherwise this seems like a proper missing featurw I'd be interested seeing implemented. I remember starting from some example proc macro code, you might find similar samples in the dependencies. Replying this from my phone so cannot offer direct links right away.

Edit: Looks like I've added the link in the readme :)

from derive-into-owned.

hoodie avatar hoodie commented on June 15, 2024

Since I've been pushing off learning proc-macros for a while now, I guess I'll give it some time tomorrow. There is this nice documentation by the amazing David Tolnay now https://github.com/dtolnay/proc-macro-workshop that I'll have to read first.

But since syn and quote have change a lot since those versions used here right now I don't have much hope that I'll be able to leave many lines untouched ;)

from derive-into-owned.

hoodie avatar hoodie commented on June 15, 2024

well, updating this might be a bit more than a one-day-project, at least for the uninitiated proc-macro developer.

from derive-into-owned.

koivunej avatar koivunej commented on June 15, 2024

That's fine; maybe I could try to chip in and see as well how to do the dep, ci pipeline, and edition upgrades, this might be much easier to see afterwards.

from derive-into-owned.

koivunej avatar koivunej commented on June 15, 2024

Need to add a test case for this probably still, then it should be done. #4 already did 99.99% of the work.

from derive-into-owned.

koivunej avatar koivunej commented on June 15, 2024

Oh just realized I had missed the field name in r#type: Cow<'_, str>, and thought that you meant the '_ could now be used with structs, but as far as I can see, nope, and that would had been "lifetime elision with structs". Maybe this doesn't need a test after all since syn handles this, so closing the issue.

from derive-into-owned.

Related Issues (7)

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.