mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 05:48:45 +00:00
Add dependencies to docs example (#1343)
* Add dependencies to docs example * Change codeblock type to toml * Clarify the need for actix-rt Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
This commit is contained in:
parent
6ab7cfa2be
commit
809930d36e
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@
|
|||
//! Actix web is a small, pragmatic, and extremely fast web framework
|
||||
//! for Rust.
|
||||
//!
|
||||
//! ## 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};
|
||||
//!
|
||||
|
|
Loading…
Reference in a new issue