Merge pull request #50 from jordalgo/downgrade-bindgen

Downgrade bindgen to 0.68
This commit is contained in:
Tejun Heo 2023-12-29 06:28:20 +09:00 committed by GitHub
commit 1d868dbf89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ description = "Utilities for sched_ext schedulers"
[dependencies]
anyhow = "1.0"
bindgen = "0.69"
bindgen = ">=0.68, <0.70"
glob = "0.3"
lazy_static = "1.4"
libbpf-cargo = "0.22"

View File

@ -506,7 +506,7 @@ impl BpfBuilder {
.header(input)
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.generate()
.context("Unable to generate bindings")?;