Skip to content

Commit

Permalink
Merge pull request #1293 from google/roll-bindgen-2
Browse files Browse the repository at this point in the history
Upgrade to bindgen 0.65.1.
  • Loading branch information
adetaylor authored Jun 15, 2023
2 parents 1bfbf9d + b9a56c6 commit 366d1a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ log = "0.4"
proc-macro2 = "1.0.11"
quote = "1.0"
indoc = "1.0"
autocxx-bindgen = { version = "=0.62.1", default-features = false, features = ["logging", "which-rustfmt"] }
#autocxx-bindgen = { git = "https://github.com/adetaylor/rust-bindgen", branch = "merge-upstream-0.62" }
autocxx-bindgen = { version = "=0.65.1", default-features = false, features = ["logging", "which-rustfmt"] }
#autocxx-bindgen = { git = "https://github.com/maurer/rust-bindgen", branch = "update-0.65.1", default-features = false, features = ["logging", "which-rustfmt"] }
itertools = "0.10.3"
cc = { version = "1.0", optional = true }
# Note: Keep the patch-level version of cxx-gen and cxx in sync.
Expand Down
6 changes: 5 additions & 1 deletion engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ impl IncludeCppEngine {
.default_enum_style(bindgen::EnumVariation::Rust {
non_exhaustive: false,
})
.rustfmt_bindings(log::log_enabled!(log::Level::Info))
.formatter(if log::log_enabled!(log::Level::Info) {
bindgen::Formatter::Rustfmt
} else {
bindgen::Formatter::None
})
.size_t_is_usize(true)
.enable_cxx_namespaces()
.generate_inline_functions(true)
Expand Down

0 comments on commit 366d1a3

Please sign in to comment.