From 1f1755d491345dedef5de2e4b9953770489192c6 Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Thu, 6 Mar 2025 12:42:16 +0800 Subject: [PATCH] update changelog --- server/CHANGES.md | 3 +++ web/CHANGES.md | 1 + 2 files changed, 4 insertions(+) diff --git a/server/CHANGES.md b/server/CHANGES.md index 9db194bb..baaa6921 100644 --- a/server/CHANGES.md +++ b/server/CHANGES.md @@ -1,4 +1,7 @@ # unreleased 0.5.0 +## Add +- add `net::Listen` trait for customizable connection accepting + ## Change - bump MSRV to `1.85` and Rust edition 2024 - rename `net::AsListener` trait to `IntoListener`. improve it's interface and reduce possibility of panicing diff --git a/web/CHANGES.md b/web/CHANGES.md index 73bc78ff..b6315d92 100644 --- a/web/CHANGES.md +++ b/web/CHANGES.md @@ -29,6 +29,7 @@ } } ``` +- `HttpServer::listen` accepts generic type impl `xitca_server::net::IntoListener` trait. The concrete type must be known before received by said function - change `codegen::error_impl` marco to coop with the change to `Error` type. the impl method must receive `error::Request` type as `WebContext`'s type param. Example: ```rust struct CustomError;