Skip to content

Commit

Permalink
add basic IP support in HermitCore
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
stlankes committed Mar 19, 2020
1 parent 57e1da5 commit 57b7203
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 89 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1349,9 +1349,9 @@ dependencies = [

[[package]]
name = "hermit-abi"
version = "0.1.1"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f22b8f315b98f415780ddbe9163c7dbbc5a07225b6d102ace1d8aeef85775140"
checksum = "1010591b26bbfe835e9faeabeb11866061cc7dcebffd56ad7d0942d0e61aefd8"
dependencies = [
"compiler_builtins",
"libc",
Expand Down
4 changes: 1 addition & 3 deletions src/libstd/sys/hermit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ pub unsafe extern "C" fn __rust_abort() {

#[cfg(not(test))]
pub fn init() {
unsafe {
let _ = net::init();
}
let _ = net::init();
}

#[cfg(not(test))]
Expand Down
Loading

0 comments on commit 57b7203

Please sign in to comment.