Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extending macros #775

Closed
Dennis-Zhang-SH opened this issue Aug 13, 2021 · 1 comment
Closed

extending macros #775

Dennis-Zhang-SH opened this issue Aug 13, 2021 · 1 comment

Comments

@Dennis-Zhang-SH
Copy link

Hi,

First of all, many thanks to this crate and appreciate your works, but I wonder is there anyway to build this crate in a macro way like crate structopt did, that would be convenient for us to convert a struct between Rust and JS.

@kjvalencik
Copy link
Member

This is a neat idea and something that's been requested a few times.

It's been implemented via serde in a community module neon-serde2. I think using serde is the right approach for converting types, but I think functions and classes could benefit from proc macros like in this proposal.

I hope that answers your question. Let me know if there's anything else I can help with!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants