Browse Source

Update README.md

Michal Podhradsky 7 years ago
parent
commit
f0cad1df08
1 changed files with 3 additions and 3 deletions
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -336,15 +336,15 @@ that do. Because of this, only one such example is provided.
 ### examples/loopback.rs
 
 _examples/loopback.rs_ sets up _smoltcp_ to talk with itself via a loopback interface.
-Although it does not require `std`, this example still requires the `alloc` feature to run.
+Although it does not require `std`, this example still requires the `alloc` feature to run, as well as `log`, `proto-ipv4` and `socket-tcp`.
 
 Read its [source code](/examples/loopback.rs), then run it without `std`:
 
 ```sh
-cargo run --example loopback --no-default-features --features alloc
+cargo run --example loopback --no-default-features --features="log proto-ipv4  socket-tcp alloc"
 ```
 
-... or with `std`:
+... or with `std` (in this case the features don't have to be explicitly listed):
 
 ```sh
 cargo run --example loopback -- --pcap loopback.pcap