From 27821db8bf09d680d219f0cf1e418c8c8ffb4798 Mon Sep 17 00:00:00 2001 From: Elliot Jackson Date: Tue, 11 Feb 2020 13:11:44 +0100 Subject: [PATCH] Clarify the need for actix-rt --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d3d5f213d..a898bd704 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,11 +7,11 @@ //! Actix web is a small, pragmatic, and extremely fast web framework //! for Rust. //! -//! ```toml -//! [dependencies] -//! actix-web = "2.0" -//! actix-rt = "1.0" -//! ``` +//! ## Example +//! +//! The `#[actix_rt::main]` macro in the example below is provided by the Actix runtime +//! crate, [`actix-rt`](https://crates.io/crates/actix-rt). You will need to include +//! `actix-rt` in your dependencies for it to run. //! //! ```rust,no_run //! use actix_web::{web, App, Responder, HttpServer};