-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Generates functions outside of capi.rs #133
Comments
It generates C definitions for every public function or struct that is C-compatible, it is not limited to a specific file. |
Is there a way to specify a file? |
Not explicitly. Please refer to the cbindgen manual, I'm not sure what are you trying to achieve, but maybe you'll find a way. cargo-c uses cbindgen to generate the header. |
Thanks for your help The solution was explained in mozilla/cbindgen#484. |
I guess this issues can be closed now? |
Link for the example: https://gitlab.com/enulp/cargo-c-test
As I understand cargo-c expose the C-API from functions inside
capi.rs
But in the example above it also generates function from the
sys.rs
file.Is it normal?
The text was updated successfully, but these errors were encountered: