mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
doc: add features = "full" to readme (#3680)
This commit is contained in:
@@ -50,7 +50,15 @@ an asynchronous application.
|
|||||||
|
|
||||||
## Example
|
## 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
|
```rust,no_run
|
||||||
use tokio::net::TcpListener;
|
use tokio::net::TcpListener;
|
||||||
|
|||||||
Reference in New Issue
Block a user