Skip to content

Commit 2aa7aeb

Browse files
committed
update dependencies
1 parent a340ccf commit 2aa7aeb

3 files changed

Lines changed: 18 additions & 17 deletions

File tree

Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ verify_binary_signature = []
3838
enable_inner_logging = []
3939

4040
[dependencies]
41-
blocking = { version = "1", optional = true }
42-
c2rust-bitfields = "0.20"
43-
futures = { version = "0.3", optional = true }
44-
libloading = "0.8"
45-
log = "0.4"
46-
thiserror = "2"
47-
windows-sys = { version = "0.60", features = [
41+
blocking = { version = "1.6.2", optional = true }
42+
c2rust-bitfields = "0.21.0"
43+
futures = { version = "0.3.31", optional = true }
44+
libloading = "0.9.0"
45+
log = "0.4.29"
46+
thiserror = "2.0.17"
47+
windows-sys = { version = "0.61.2", features = [
4848
"Win32_System_Diagnostics_Debug",
4949
"Win32_System_SystemServices",
5050
"Win32_Security_Cryptography",
@@ -61,16 +61,16 @@ windows-sys = { version = "0.60", features = [
6161
"Win32_System_LibraryLoader",
6262
"Win32_Security_WinTrust",
6363
] }
64-
winreg = { version = "0.55", optional = true }
64+
winreg = { version = "0.55.0", optional = true }
6565

6666
[dev-dependencies]
67-
dotenvy = "0.15"
68-
env_logger = "0.11"
69-
packet = "0.1"
70-
pcap-file = "2"
71-
serde_json = "1"
72-
subprocess = "0.2"
73-
tokio = { version = "1", features = ["full"] }
67+
dotenvy = "0.15.7"
68+
env_logger = "0.11.8"
69+
packet = "0.1.4"
70+
pcap-file = "2.0.0"
71+
serde_json = "1.0.145"
72+
subprocess = "0.2.9"
73+
tokio = { version = "1.48.0", features = ["full"] }
7474

7575
[[example]]
7676
name = "udp-echo-async"

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ where
102102
return Err(format!("Signer \"{}\" not match \"{}\"", signer_name, wp).into());
103103
}
104104
}
105-
unsafe { Ok(Arc::new(wintun_raw::wintun::new(path)?)) }
105+
let path2: std::path::PathBuf = path.as_ref().into();
106+
unsafe { Ok(Arc::new(wintun_raw::wintun::new(&path2)?)) }
106107
}
107108

108109
/// Attempts to load the Wintun library from an existing [`libloading::Library`].

src/wintun_raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub struct wintun {
6161
impl wintun {
6262
pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
6363
where
64-
P: AsRef<::std::ffi::OsStr>,
64+
P: ::libloading::AsFilename,
6565
{
6666
let library = ::libloading::Library::new(path)?;
6767
Self::from_library(library)

0 commit comments

Comments
 (0)