-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support defining getters in Rust #222
Comments
Any updating? |
None yet, but would still be great to implement! |
I will work on it. Any tips for this issue, @alexcrichton ? |
Sure! I think a rough set of steps for implementing this would be:
If you've got any questions though let me know! |
@alexcrichton Oh, this is plenty. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently when you export a struct in Rust to JS it only exports public methods, but we should enable the ability to define getters and setters for properties too, for example:
The text was updated successfully, but these errors were encountered: