From 8b6c4b5d215a86a851cba14ad0b8d5b70bc7bb59 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 28 Sep 2024 19:27:37 +0200 Subject: [PATCH] Remove dependency to hermit-abi (#1830) 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")]