diff --git a/Cargo.lock b/Cargo.lock index ccc3a2f..a3d190d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.70.1" +version = "0.71.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f" +checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3" dependencies = [ "bitflags", "cexpr", @@ -222,9 +222,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.79" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] @@ -269,9 +269,9 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "rustc-hash" -version = "1.1.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" [[package]] name = "sharded-slab" diff --git a/crates/nvtx-sys/Cargo.toml b/crates/nvtx-sys/Cargo.toml index b347218..936b70d 100644 --- a/crates/nvtx-sys/Cargo.toml +++ b/crates/nvtx-sys/Cargo.toml @@ -11,7 +11,7 @@ publish.workspace = true license.workspace = true [build-dependencies] -bindgen = "0.70.1" +bindgen = "0.71.1" cc = "1.2.3" [dependencies] diff --git a/crates/nvtx-sys/build.rs b/crates/nvtx-sys/build.rs index e455a2a..db6a1cb 100644 --- a/crates/nvtx-sys/build.rs +++ b/crates/nvtx-sys/build.rs @@ -3,6 +3,8 @@ use std::{ path::{Path, PathBuf}, }; +use bindgen::RustTarget; + fn main() { let mut lib_builder = cc::Build::new(); let mut builder = bindgen::Builder::default(); @@ -14,6 +16,10 @@ fn main() { .file(Path::new("c/src/lib.c")); builder = builder + .rust_target( + #[allow(deprecated)] + RustTarget::Stable_1_77, + ) // MSRV .detect_include_paths(true) .clang_arg("-I") .clang_arg("vendor/nvtx/c/include")