From 0074b963b8ef02308e6367c8edd5c9d210c9038d Mon Sep 17 00:00:00 2001 From: Lucas Zanela Date: Tue, 6 Apr 2021 06:03:21 -0300 Subject: [PATCH] doc: add features = "full" to readme (#3680) --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9250e9afc..9af1b8fbf 100644 --- a/README.md +++ b/README.md @@ -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;