Skip to content

Commit

Permalink
add description of the flag "smoltcp"
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jun 2, 2020
1 parent 0a6fae2 commit c68ef8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ Consequently, it is required to **extend** *Cargo.toml* with following lines:

[target.'cfg(target_os = "hermit")'.dependencies]
hermit-sys = "0.1.*"
default-features = false
features = ["smoltcp"]

[profile.release]
opt-level = 3
Expand All @@ -176,6 +178,7 @@ opt-level = 3
opt-level = 1
```

The feature `smoltcp` includes the network stack [smoltcp](https://github.com/smoltcp-rs/smoltcp) and offers the possibility of communication base on TCP/UDP.
To link the application with RustyHermit, declare `hermit_sys` an `external crate` in the main file of your application.

```rust
Expand Down

0 comments on commit c68ef8e

Please sign in to comment.