Update README.md
This commit is contained in:
parent
e97b50419f
commit
31ab2c788e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue