mirror of
https://github.com/actix/actix-web.git
synced 2025-04-07 02:29:39 +00:00
Add dependencies to docs example
This commit is contained in:
parent
3851a377df
commit
05359572eb
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue