From 6b47e0e908992eb62984b07d5a86ae21a2846ab8 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 19 Aug 2024 20:51:31 +0200 Subject: [PATCH] remove dependency to hermit-abi - use directly libc as platform interface --- Cargo.toml | 6 +++--- src/sys/unix/net.rs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4cb24a893..e2f924e84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,10 +47,10 @@ net = [] log = { version = "0.4.8", optional = true } [target.'cfg(unix)'.dependencies] -libc = "0.2.149" +libc = "0.2.159" [target.'cfg(target_os = "hermit")'.dependencies] -libc = { package = "hermit-abi", version = "0.3.9" } +libc = "0.2.159" [target.'cfg(windows)'.dependencies.windows-sys] version = "0.52" @@ -67,7 +67,7 @@ features = [ [target.'cfg(target_os = "wasi")'.dependencies] wasi = "0.11.0" -libc = "0.2.149" +libc = "0.2.159" [dev-dependencies] env_logger = { version = "0.9.3", default-features = false } diff --git a/src/sys/unix/net.rs b/src/sys/unix/net.rs index e6ffddeb5..82d4bb5c1 100644 --- a/src/sys/unix/net.rs +++ b/src/sys/unix/net.rs @@ -164,6 +164,7 @@ pub(crate) fn socket_addr(addr: &SocketAddr) -> (SocketAddrCRepr, libc::socklen_ target_os = "espidf", target_os = "vita", target_os = "nto", + target_os = "hermit", ))] sin6_len: 0, #[cfg(target_os = "vita")]