Update README.md

This commit is contained in:
Michal Podhradsky 2018-04-17 10:52:08 -07:00 committed by whitequark
parent e97b50419f
commit 31ab2c788e
1 changed files with 3 additions and 3 deletions

View File

@ -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