mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 15:51:06 +01:00
update readme
This commit is contained in:
parent
f39a64f526
commit
ee71d4cfa7
@ -13,7 +13,7 @@
|
|||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "4"
|
actix-web = "4"
|
||||||
actix-limitation = "0.1.4"
|
actix-limitation = "0.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies]
|
//! [dependencies]
|
||||||
//! actix-web = "4"
|
//! actix-web = "4"
|
||||||
//! actix-limitation = "0.1.4"
|
#![doc = concat!("actix-limitation = \"", env!("CARGO_PKG_VERSION_MAJOR"), ".", env!("CARGO_PKG_VERSION_MINOR"),"\"")]
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
@ -34,7 +34,7 @@
|
|||||||
//! .app_data(limiter.clone())
|
//! .app_data(limiter.clone())
|
||||||
//! .service(index)
|
//! .service(index)
|
||||||
//! })
|
//! })
|
||||||
//! .bind("127.0.0.1:8080")?
|
//! .bind(("127.0.0.1", 8080))?
|
||||||
//! .run()
|
//! .run()
|
||||||
//! .await
|
//! .await
|
||||||
//! }
|
//! }
|
||||||
|
Loading…
Reference in New Issue
Block a user