Skip to content
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

Generate CStr with bindgen #48

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Generate CStr with bindgen #48

merged 1 commit into from
Sep 6, 2024

Conversation

nyurik
Copy link
Collaborator

@nyurik nyurik commented Sep 6, 2024

Per documentation, generate_cstr should be enabled for all projects because pretty soon it will become the default. See docs.

Also update the bindings file, and used the newly established std::ffi (cleaner/more consistent)

Per documentation, `generate_cstr` should be enabled for all projects because pretty soon it will become the default. See [docs](https://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.generate_cstr).

Also, in later Rust, c-types can use the new `::std::ffi` - so modifying for consistency, and updated the bindings saved file.
@gquintard gquintard merged commit 1367816 into gquintard:main Sep 6, 2024
2 checks passed
@nyurik nyurik deleted the gen-cstr branch September 6, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants