actix-web v4.0.0-beta.1 Release Notes
Release Date: 2021-01-07 // over 3 years ago-
โ Added
Compat
middleware enabling generic response body/error type of middlewares likeLogger
andCompress
to be used inmiddleware::Condition
andResource
,Scope
services. [#1865]
๐ Changed
- โก๏ธ Update
actix-*
dependencies to tokio1.0
based versions. [#1813] - โฌ๏ธ Bumped
rand
to0.8
. - โก๏ธ Update
rust-tls
to0.19
. [#1813] - ๐ Rename
Handler
toHandlerService
and renameFactory
toHandler
. [#1852] - ๐ The default
TrailingSlash
is nowTrim
, in line with existing documentation. See migration guide for implications. [#1875] - Rename
DefaultHeaders::{content_type => add_content_type}
. [#1875] - MSRV is now 1.46.0.
๐ Fixed
- Added the underlying parse error to
test::read_body_json
's panic message. [#1812]
โ Removed
- Public modules
middleware::{normalize, err_handlers}
. All necessary middleware structs are now exposed directly by themiddleware
module. - โ Remove
actix-threadpool
as dependency.actix_threadpool::BlockingError
error type can be imported fromactix_web::error
module. [#1878]
๐ [#1812]: https://github.com/actix/actix-web/pull/1812 ๐ [#1813]: https://github.com/actix/actix-web/pull/1813 ๐ [#1852]: https://github.com/actix/actix-web/pull/1852 ๐ [#1865]: https://github.com/actix/actix-web/pull/1865 ๐ [#1875]: https://github.com/actix/actix-web/pull/1875 ๐ [#1878]: https://github.com/actix/actix-web/pull/1878