-
Notifications
You must be signed in to change notification settings - Fork 280
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
Neon fails when having a main.rs file #1040
Comments
I believe when a crate is both a lib and a bin
|
Sadly this does not help. But also without it cargo does build both the bin and the lib. |
My workaround right now is:
Looks ridiculous but works for my case. Thank you for the additional hints though! |
I'm glad you have a workaround! If you have a second to test |
I am quite new to rust and neon so I am not sure what exactly to test. Could you give me a hint? |
I can reproduce too! I'll get this fixed asap. |
Found the culprit. I'll publish a fix soon! |
- fixes neon-bindings/neon#1040 - add test harness for cli - add test for hybrid crates
@paviro What version of @neon-rs/cli do you have in your package.json? I've published a new version that fixes the issue, and it should work to just update to 0.1.69. But let me know if you have trouble upgrading and I'll be happy to help. |
(Reopening for now just to make sure it actually works for @paviro.) |
It works, thank you for the quick fix! And for being so lovely to reopen the issue until I confirmed, made me smile! |
thanks. update the newest version help me fix the problem. |
Hi,
My project also builds a CLI tool from main.rs it seems like as soon as a main.rs is present neon fails with
Moving it to main_.rs and then back to main.rs when building with neon works.
Best,
Paul
The text was updated successfully, but these errors were encountered: