File: relax-bindgen.patch

package info (click to toggle)
rust-libsqlite3-sys 0.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: sh: 25; ansic: 5; makefile: 4
file content (33 lines) | stat: -rw-r--r-- 909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,7 +32,7 @@
 optional = true
 
 [build-dependencies.bindgen]
-version = "0.64"
+version = ">= 0.72, < 1.0"
 features = ["runtime"]
 optional = true
 default-features = false
--- a/build.rs
+++ b/build.rs
@@ -478,7 +478,7 @@
 #[cfg(feature = "buildtime_bindgen")]
 mod bindings {
     use super::HeaderLocation;
-    use bindgen::callbacks::{IntKind, ParseCallbacks};
+    use bindgen::callbacks::{IntKind, ItemInfo, ParseCallbacks};
 
     use std::fs::OpenOptions;
     use std::io::Write;
@@ -497,8 +497,8 @@
                 None
             }
         }
-        fn item_name(&self, original_item_name: &str) -> Option<String> {
-            original_item_name
+        fn item_name(&self, item_info: ItemInfo) -> Option<String> {
+            item_info.name
                 .strip_prefix("sqlite3_index_info_")
                 .map(|s| s.to_owned())
         }