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
Support renaming the types (at the C header layer) for:
Opaque types.
#[ReprC::opaque("name_in_the_c_header")]
everything else
Idea of the syntax: #[ReprC::rename("name_in_the_c_header")]
#[ReprC::rename("name_in_the_c_header")]
would probably override the syntax for opaque types for the sake of consistency
#[derive_ReprC(rename = "...")] would also be possible, but the ::syn-less equivalent of the ReprC! { ... } macro would then be left out.
#[derive_ReprC(rename = "...")]
::syn
ReprC! { ... }
The text was updated successfully, but these errors were encountered:
Completed as per the latest safer-ffi changes. Demo:
safer-ffi
safer_ffi/ffi_tests/src/lib.rs
Line 175 in c7c410e
safer_ffi/ffi_tests/generated.h
Lines 67 to 77 in c7c410e
TODO: release to crates.io
Sorry, something went wrong.
danielhenrymantilla
No branches or pull requests
Support renaming the types (at the C header layer) for:
Opaque types.
#[ReprC::opaque("name_in_the_c_header")]
everything else
Idea of the syntax:
#[ReprC::rename("name_in_the_c_header")]
would probably override the syntax for opaque types for the sake of consistency
#[derive_ReprC(rename = "...")]
would also be possible, but the::syn
-less equivalent of theReprC! { ... }
macro would then be left out.The text was updated successfully, but these errors were encountered: