-
Notifications
You must be signed in to change notification settings - Fork 234
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
Allow different crate types when using library mode #1671
Conversation
This makes library mode work when the dependent crate doesn't include "lib" in their `crate-type` list. I think that check was leftover from older code and isn't needed anymore.
@jplatte I think this should fix your issue with library mode, can you test it against your branch? As a workaround in the meantime, I think you should be able to use a regular release if you add |
I'm getting a new, somewhat cryptic, error message with this:
|
@jplatte Could use use Maybe that check should be removed, but the idea was to ensure that you use the same dylib that the bindings are eventually going to open. |
Huh? Consumers could use either, the static or dynamic library. Anyways, I totally missed that I had given the static lib, so the error message actually was pretty clear 🤦🏼 |
Anyways, it works when passing the |
Just an FIY for people who might use this workaround, for some reason adding the |
This makes library mode work when the dependent crate doesn't include "lib" in their
crate-type
list. I think that check was leftover from older code and isn't needed anymore.