From d1d0c7984c5cf71266110f48eddff8b77ea8153a Mon Sep 17 00:00:00 2001 From: Alessio Proietti Date: Thu, 25 Mar 2021 11:53:05 +0100 Subject: [PATCH] General Documentation corrected to select smoltcp feature during build selection for Network Support --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4ef379d30..338e36172 100644 --- a/README.md +++ b/README.md @@ -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"] ```