Skip to content

Commit 57b7203

Browse files
committed
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
1 parent 57e1da5 commit 57b7203

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
@@ -1349,9 +1349,9 @@ dependencies = [
13491349

13501350
[[package]]
13511351
name = "hermit-abi"
1352-
version = "0.1.1"
1352+
version = "0.1.8"
13531353
source = "registry+https://github.com/rust-lang/crates.io-index"
1354-
checksum = "f22b8f315b98f415780ddbe9163c7dbbc5a07225b6d102ace1d8aeef85775140"
1354+
checksum = "1010591b26bbfe835e9faeabeb11866061cc7dcebffd56ad7d0942d0e61aefd8"
13551355
dependencies = [
13561356
"compiler_builtins",
13571357
"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)