We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no_mangle
extern "C"
When trying to generate header files for an FFI crate I get these warnings:
WARN: skip ::svg_str_to_polylines - (not both no_mangle and extern "C") WARN: skip ::free_polylines - (not both no_mangle and extern "C")
The warnings are correct, I use #[no_mangle] for the functions but not "C":
#[no_mangle]
"C"
#[no_mangle] pub extern fn svg_str_to_polylines(...
According to https://stackoverflow.com/a/44664851/284318 there is not a real need for the "C" part, and the version without seems preferred: rust-lang/style-team#52
Is there a reason why cbindgen requires that part of the declaration?
The text was updated successfully, but these errors were encountered:
Ah, I wasn't aware that the C ABI is the default with extern. cbindgen should accept it without "C" then.
extern
Sorry, something went wrong.
This should be fixed in e0ec983.
No branches or pull requests
When trying to generate header files for an FFI crate I get these warnings:
The warnings are correct, I use
#[no_mangle]
for the functions but not"C"
:According to https://stackoverflow.com/a/44664851/284318 there is not a real need for the
"C"
part, and the version without seems preferred: rust-lang/style-team#52Is there a reason why cbindgen requires that part of the declaration?
The text was updated successfully, but these errors were encountered: