Comments (6)
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.
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.
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.
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.
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.
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
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 derive-into-owned.