diff options
Diffstat (limited to 'tokio/README.md')
-rw-r--r-- | tokio/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tokio/README.md b/tokio/README.md index 087ab025..530f0bac 100644 --- a/tokio/README.md +++ b/tokio/README.md @@ -52,6 +52,15 @@ an asynchronous application. ## Example +To get started, add the following to `Cargo.toml`. + +```toml +tokio = { version = "0.2.0", features = ["full"] } +``` + +Tokio requires components to be explicitly enabled using feature flags. As a +shorthand, the `full` feature enables all components. + A basic TCP echo server with Tokio: ```rust |