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
Turn this C struct
struct foo_bar { int bazBolly; };
into
#[repr(C)] struct FooBar { baz_bolly: std::os::raw::c_int, }
We could use the heck crate.
heck
The hard part will be dealing with name clashes correctly.
The text was updated successfully, but these errors were encountered:
If #1097 is not feasible, it would also be nice to rustify enum variant names.
Sorry, something went wrong.
I think we already have a general problem with a name clashing.
First thing that comes in mind is:
echo 'struct foo { int pub; int pub_; };' | bindgen --no-layout-tests - -- -E
/* automatically generated by rust-bindgen */ #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct foo { pub pub_: ::std::os::raw::c_int, pub pub_: ::std::os::raw::c_int, }
Yeah, it will only get more likely with renaming fields, however.
No branches or pull requests
Turn this C struct
into
We could use the
heck
crate.The hard part will be dealing with name clashes correctly.
The text was updated successfully, but these errors were encountered: