mirror of https://github.com/fafhrd91/actix-web
Add dependencies to docs example
This commit is contained in:
parent
3851a377df
commit
05359572eb
|
@ -8,6 +8,12 @@
|
|||
//! for Rust.
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! [dependencies]
|
||||
//! actix-web = "2.0"
|
||||
//! actix-rt = "1.0"
|
||||
//! ```
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! use actix_web::{web, App, Responder, HttpServer};
|
||||
//!
|
||||
//! async fn index(info: web::Path<(String, u32)>) -> impl Responder {
|
||||
|
|
Loading…
Reference in New Issue