-
Notifications
You must be signed in to change notification settings - Fork 44
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
#[node_bindgen] is broken? #41
Comments
Thanks for bug report. Yes, I can reproduce it. |
Yes, it works on 1.3.0 but not latest version. This happens whenever there are more than 1 field in the struct. |
This is interesting. Generated code looks ok and it even compiles but not from macro directly |
add 2nd field class-simple to reproduce bug for struct with 2 fields fix issue #41: fix macro expansion instead of trying to manually inserting separator, let recursive macro do for you
add 2nd field class-simple to reproduce bug for struct with 2 fields fix issue #41: fix macro expansion instead of trying to manually inserting separator, let recursive macro do for you
fixed. previous implementation of macro expansion include extra
|
Thank you ! |
Cargo update should be enough |
Ok, it works, thank you ! :) |
Hello,
I have tried to use this library with this test code:
It works with version 1.3.0, but not with version 2.1.1.
On this latest version, I got this error:
In my case, the error concern the attribute used on the top of "impl MyStruct".
I have followed the examples, I don't know why it doesn't work.
Without this macro, it compiles but MyStruct is not available from nodejs.
Rust version: rustc 1.45.0-nightly (a74d1862d 2020-05-14) (on Linux 86_64)
Thank you !
Valentin CRÔNE
The text was updated successfully, but these errors were encountered: