update: 升级 rust 依赖

This commit is contained in:
mofeng-git
2026-07-16 22:59:22 +08:00
parent 8036c164b4
commit aca847e76c
15 changed files with 69 additions and 46 deletions

View File

@@ -49,7 +49,7 @@ version = "0.1.6"
version = "0.4.14"
[dependencies.nix]
version = "0.28"
version = "0.31"
features = [
"ioctl",
"mman",
@@ -59,7 +59,7 @@ features = [
]
[dependencies.thiserror]
version = "1.0"
version = "2"
[build-dependencies.bindgen]
version = "0.70.1"
version = "0.72"

View File

@@ -18,11 +18,11 @@ arch64 = []
arch32 = []
[dependencies]
nix = { version = "0.28", features = ["ioctl", "mman", "poll", "fs", "event"] }
nix = { version = "0.31", features = ["ioctl", "mman", "poll", "fs", "event"] }
bitflags = "2.4"
thiserror = "1.0"
thiserror = "2"
log = "0.4.14"
enumn = "0.1.6"
[build-dependencies]
bindgen = "0.70.1"
bindgen = "0.72"

View File

@@ -8,8 +8,8 @@
pub struct Fix753;
impl bindgen::callbacks::ParseCallbacks for Fix753 {
fn item_name(&self, original_item_name: &str) -> Option<String> {
Some(original_item_name.trim_start_matches("Fix753_").to_owned())
fn item_name(&self, item_info: bindgen::callbacks::ItemInfo<'_>) -> Option<String> {
Some(item_info.name.trim_start_matches("Fix753_").to_owned())
}
}