Skip to content

Commit 1b521f5

Browse files
committed
Auto merge of #70136 - hermitcore:network_tcp, r=dtolnay
add basic IP support in HermitCore - add initial version to support sockets - use TcpStream as test case - HermitCore uses smoltcp as IP stack for pure Rust applications - further functionalities (e.g. UDP support) will be added step by step - in principle, the current PR is a revision of #69404
2 parents 6050e52 + 57b7203 commit 1b521f5

File tree

3 files changed

+158
-89
lines changed

3 files changed

+158
-89
lines changed

Cargo.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1377,9 +1377,9 @@ dependencies = [
13771377

13781378
[[package]]
13791379
name = "hermit-abi"
1380-
version = "0.1.1"
1380+
version = "0.1.8"
13811381
source = "registry+https://github.com/rust-lang/crates.io-index"
1382-
checksum = "f22b8f315b98f415780ddbe9163c7dbbc5a07225b6d102ace1d8aeef85775140"
1382+
checksum = "1010591b26bbfe835e9faeabeb11866061cc7dcebffd56ad7d0942d0e61aefd8"
13831383
dependencies = [
13841384
"compiler_builtins",
13851385
"libc",

src/libstd/sys/hermit/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ pub unsafe extern "C" fn __rust_abort() {
9393

9494
#[cfg(not(test))]
9595
pub fn init() {
96-
unsafe {
97-
let _ = net::init();
98-
}
96+
let _ = net::init();
9997
}
10098

10199
#[cfg(not(test))]

0 commit comments

Comments
 (0)