Skip to content

Commit

Permalink
bump bindgen to the latest 1.34-readable version
Browse files Browse the repository at this point in the history
Cargo 1.34 cannot update lockfile with later `bindgen` versions as the
index entries for them use newer format it does not support. Stop here
for now.
The bindings themselves don't need updates as the generated bindings
match exactly (modulo the comment header).
  • Loading branch information
tanriol committed Dec 13, 2023
1 parent 0fb2f74 commit 4a50828
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 122 deletions.
140 changes: 21 additions & 119 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pkg-config = "0.3.7"
vcpkg = "0.2"

[build-dependencies.bindgen]
version = "0.59"
version = "0.65.1"
optional = true

[workspace]
Expand Down
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ fn main() {
fn bindings_builder() -> bindgen::Builder {
bindgen::Builder::default()
.header(header_path())
.default_enum_style(bindgen::EnumVariation::NewType{ is_bitfield : false })
.default_enum_style(bindgen::EnumVariation::NewType {
is_bitfield: false,
is_global: false,
})
.parse_callbacks(Box::new(Callbacks))
.rustfmt_bindings(true)
.allowlist_function("ftdi_.*")
.allowlist_type("ftdi_.*")
.generate_comments(false)
Expand Down

0 comments on commit 4a50828

Please sign in to comment.