Skip to content

Commit

Permalink
remove dependency to hermit-abi
Browse files Browse the repository at this point in the history
- use directly libc as platform interface
  • Loading branch information
stlankes committed Sep 28, 2024
1 parent e66deb9 commit 6b47e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }
Expand Down
1 change: 1 addition & 0 deletions src/sys/unix/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 6b47e0e

Please sign in to comment.