Skip to content

Commit

Permalink
Auto merge of #70136 - hermitcore:network_tcp, r=dtolnay
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Apr 4, 2020
2 parents 6050e52 + 57b7203 commit 1b521f5
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 @@ -1377,9 +1377,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 1b521f5

Please sign in to comment.