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

@@ -21,4 +21,4 @@ serde_json = "1.0"
[build-dependencies]
cc = "1.0"
bindgen = "0.70.1"
bindgen = "0.72"

View File

@@ -1,11 +1,12 @@
#[cfg(feature = "bytes")]
use crate::ffmpeg_ram::{ffmpeg_ram_encode_packet, ffmpeg_ram_free_packet};
use crate::{
common::DataFormat::{self, *},
ffmpeg::{init_av_log, AVPixelFormat},
ffmpeg_ram::{
ffmpeg_linesize_offset_length, ffmpeg_ram_encode, ffmpeg_ram_encode_packet,
ffmpeg_ram_encoder_last_error, ffmpeg_ram_free_encoder, ffmpeg_ram_free_packet,
ffmpeg_ram_new_encoder, ffmpeg_ram_request_keyframe, ffmpeg_ram_set_bitrate, CodecInfo,
AV_NUM_DATA_POINTERS,
ffmpeg_linesize_offset_length, ffmpeg_ram_encode, ffmpeg_ram_encoder_last_error,
ffmpeg_ram_free_encoder, ffmpeg_ram_new_encoder, ffmpeg_ram_request_keyframe,
ffmpeg_ram_set_bitrate, CodecInfo, AV_NUM_DATA_POINTERS,
},
};
#[cfg(feature = "bytes")]

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())
}
}

View File

@@ -10,7 +10,7 @@ license = "GPL-2.0"
clap = { version = "4", features = ["derive"] }
# Error handling
thiserror = "1"
thiserror = "2"
[dev-dependencies]
tempfile = "3"