Skip to content

Commit

Permalink
Generate CStr with bindgen
Browse files Browse the repository at this point in the history
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 update the bindings file.
  • Loading branch information
nyurik committed Sep 6, 2024
1 parent 871c0e0 commit 147dc18
Show file tree
Hide file tree
Showing 4 changed files with 1,281 additions and 6,602 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn main() {
.derive_copy(true)
.derive_debug(true)
.derive_default(true)
.generate_cstr(true)
.generate()
.expect("Unable to generate bindings");

Expand Down
Loading

0 comments on commit 147dc18

Please sign in to comment.