diff --git a/http-rate/CHANGES.md b/http-rate/CHANGES.md index ce170ef3..d94caf79 100644 --- a/http-rate/CHANGES.md +++ b/http-rate/CHANGES.md @@ -1 +1,6 @@ -# unreleased version 0.1.1 \ No newline at end of file +# unreleased version 0.1.2 + +# 0.1.1 + +## fix +- fix build on rust `1.75` diff --git a/http-rate/src/lib.rs b/http-rate/src/lib.rs index a4487587..a1805b9a 100644 --- a/http-rate/src/lib.rs +++ b/http-rate/src/lib.rs @@ -13,9 +13,10 @@ pub use error::TooManyRequests; pub use quota::Quota; pub use snapshot::RateSnapshot; -use core::net::{IpAddr, SocketAddr}; - -use std::sync::Arc; +use std::{ + net::{IpAddr, SocketAddr}, + sync::Arc, +}; use http::header::{HeaderMap, HeaderName, FORWARDED}; diff --git a/web/CHANGES.md b/web/CHANGES.md index 423295cc..4151b9e7 100644 --- a/web/CHANGES.md +++ b/web/CHANGES.md @@ -1,5 +1,6 @@ -# unreleased version 0.2.0 +# unreleased version 0.2.2 +# 0.2.1 ## Add - `RateLimit` middleware with optional feature `rate-limit`. - implement `Responder` trait for `serde_json::Value`. diff --git a/web/Cargo.toml b/web/Cargo.toml index c112824c..d17700d1 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xitca-web" -version = "0.2.0" +version = "0.2.1" edition = "2021" license = "Apache-2.0" description = "an async web framework" diff --git a/web/src/handler/impls.rs b/web/src/handler/impls.rs index 512b74c8..f8288ec0 100644 --- a/web/src/handler/impls.rs +++ b/web/src/handler/impls.rs @@ -1,4 +1,4 @@ -use core::net::SocketAddr; +use std::net::SocketAddr; use crate::{ body::ResponseBody,