Skip to content

Commit bc3db32

Browse files
Merge #119
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 <[email protected]>
2 parents c00a728 + d1d0c79 commit bc3db32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ sudo bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap10/proxy_arp'
196196
```
197197

198198
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.
199-
199+
`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`
200200
```toml
201201
# Cargo.toml
202202

203-
[target.'cfg(target_os = "hermit")'.dependencies]
204-
hermit-sys = "0.1.*"
203+
[target.'cfg(target_os = "hermit")'.dependencies.hermit-sys]
204+
version = "0.1.*"
205205
default-features = false
206206
features = ["smoltcp"]
207207
```

0 commit comments

Comments
 (0)