-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Document that the capi feature must be present in the Cargo.toml #152
Comments
Do you have your code available so I can take a look? |
I've created #153 as an example. The error appears in CI. |
It works as intended. cargo rejects setting features that aren't present in the manifest. I cannot work around this limitation without changing the cargo API. |
This can be quite confusing, because the header contains all the functions, but the library doesn't. The instruction "... use Still, even with updated documentation, this might cause a lot of confusion in the future, it would be great if it were possible to avoid the problem completely ... What was the reason for deprecating |
there are two issues:
On top Possibly I can send patches to upstream cargo to get those two sorted. |
See also lu-zero/cargo-c#152, fixes bug in CI
In the meantime, the README contains the information that the But maybe it would be helpful to explicitly mention how to do that? Something like this: [features]
capi = [] |
It sounds a good idea indeed. :) |
If my
Cargo.toml
does not contain a[features]
section defining thecapi
feature, the header file is generated correctly, but the dynamic library does not contain the expected symbols.The README says:
... but it doesn't say that defining this feature is required.
UPDATE: I'm trying this on Linux, btw.
The text was updated successfully, but these errors were encountered: