Skip to content

Commit

Permalink
Remove dependency to hermit-abi (#1830)
Browse files Browse the repository at this point in the history
Use directly libc as platform interface.
  • Loading branch information
stlankes authored Sep 28, 2024
1 parent e66deb9 commit 8b6c4b5
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 8b6c4b5

Please sign in to comment.