From 9f34d32249b0cfba0ed426072ca1a63f9fd5d221 Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Sat, 25 May 2024 13:20:02 +0200 Subject: [PATCH] Fix rust-bindgen build Tell cargo we've modified the code of rust-bindgen so the checksum verification of this crate should be skipped. --- Cargo.lock | 4 ++-- Cargo.toml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 71d0eafdd0a5e..6f40cab800917 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -414,8 +414,8 @@ dependencies = [ [[package]] name = "bindgen" version = "0.64.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" +#source = "registry+https://github.com/rust-lang/crates.io-index" +#checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" dependencies = [ "bitflags 1.3.2", "cexpr", diff --git a/Cargo.toml b/Cargo.toml index e77bb2b4869ba..bdad15accffd2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -191,3 +191,8 @@ uniffi_bindgen = "=0.23.0" uniffi_build = "=0.23.0" uniffi_macros = "=0.23.0" weedle2 = "=4.0.0" + +[patch.crates-io.bindgen_0_64_0] +package = "bindgen" +version = "0.64.0" +path = "third_party/rust/bindgen"