-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Feedback for “Class” #72
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use napi-rs at the moment for a project and I'm generally very impressed and grateful for what you have created.
Yesterday I had the experience of getting quite confused about an error which said
And I couldn't see anything about
MyValue
that would be causing the problem given how I was setting it up. It turned out that I had another struct with#[napi]
which had apub value: MyValue
field and it was thepub
that was triggering the error. It never should have beenpub
but I guess I typed it accidentally at some point. I realise it is hard to control the kind of errors that the compiler produces in this situation but I'm wondering if the docs could be extended to include a section aboutpub
fields and their implications and the kind of error that I ran into.I would be happy to try to provide some text or a PR if that would be useful.
The text was updated successfully, but these errors were encountered: