doc: add features = "full" to readme (#3680)

This commit is contained in:
Lucas Zanela 2021-04-06 06:03:21 -03:00 committed by GitHub
parent eabb7ce61c
commit 0074b963b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,15 @@ an asynchronous application.
## Example
A basic TCP echo server with Tokio:
A basic TCP echo server with Tokio.
Make sure you activated the full features of the tokio crate on Cargo.toml:
```text
[dependencies]
tokio = { version = "1.4.0", features = ["full"] }
```
Then, on your main.rs:
```rust,no_run
use tokio::net::TcpListener;