Skip to content

Commit

Permalink
bindgen: Use 0.64
Browse files Browse the repository at this point in the history
Merges: #30
  • Loading branch information
chrysn authored Mar 23, 2023
2 parents 4a1a630 + 07d7566 commit 53dc960
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ riot-build = { version = "< 0.2.0", optional = true }
riot-rs-core = { version = "< 0.2.0", optional = true }

[build-dependencies]
bindgen = "^0.60.1"
bindgen = "^0.64"
shlex = "^1"
serde_json = "1"
serde = { version = "1", features = [ "derive" ] }
Expand Down
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ fn main() {
.clang_args(&cflags)
.use_core()
.ctypes_prefix("libc")
// We've traditionally used size_t explicitly and cast it in riot-wrappers; changing this
// now (going from bindgen 0.60 to 0.64) would break where it's used (although we still
// might instate a type alias for size_t later instead).
.size_t_is_usize(false)
.impl_debug(true)
// Structs listed here are Packed and thus need impl_debug, but also contain non-Copy
// members.
Expand Down

0 comments on commit 53dc960

Please sign in to comment.