Skip to content

Commit

Permalink
Merge #119
Browse files Browse the repository at this point in the history
119: General Documentation corrected to select smoltcp feature during build selection for Network Support r=stlankes a=alessio-proietti

I think General documentation should be updated as proposed, that's why #118.


Co-authored-by: Alessio Proietti <alessio.proietti@protonmail.com>
  • Loading branch information
bors[bot] and alessio-proietti committed Apr 7, 2021
2 parents c00a728 + d1d0c79 commit bc3db32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ sudo bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap10/proxy_arp'
```

Add the feature `smoltcp` in the `Cargo.toml`. This includes the network stack [smoltcp](https://github.com/smoltcp-rs/smoltcp) and offers TCP/UDP communication.

`hermi-sys` dependency has to be factored out of `[target.'cfg(target_os = "hermit")'.dependencies]` because it requires features selection for network support to work thus this snippet should be added to `Cargo.toml`
```toml
# Cargo.toml

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

0 comments on commit bc3db32

Please sign in to comment.