diff --git a/actix-web-lab-derive/Cargo.toml b/actix-web-lab-derive/Cargo.toml index 0b9ea380..a32ff6aa 100644 --- a/actix-web-lab-derive/Cargo.toml +++ b/actix-web-lab-derive/Cargo.toml @@ -26,7 +26,7 @@ syn = { version = "1", features = ["full", "parsing"] } [dev-dependencies] actix-test = "0.1.0-beta.13" actix-web = "4.0.0" -actix-web-lab = "=0.16.6" +actix-web-lab = "=0.16.7" futures-util = { version = "0.3.7", default-features = false, features = ["std"] } trybuild = "1" diff --git a/actix-web-lab/CHANGELOG.md b/actix-web-lab/CHANGELOG.md index 5e130559..5b594932 100644 --- a/actix-web-lab/CHANGELOG.md +++ b/actix-web-lab/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## Unreleased - 2022-xx-xx + + +## 0.16.7 - 2022-07-27 - Implement `FromStr` and `Header::parse` for `StrictTransportSecurity`. - Implement `PartialEq` and `Eq` for `StrictTransportSecurity`. diff --git a/actix-web-lab/Cargo.toml b/actix-web-lab/Cargo.toml index f4c54277..686d703d 100644 --- a/actix-web-lab/Cargo.toml +++ b/actix-web-lab/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-web-lab" -version = "0.16.6" +version = "0.16.7" description = "In-progress extractors and middleware for Actix Web" authors = ["Rob Ede "] keywords = ["actix", "http", "web", "framework", "async"] diff --git a/actix-web-lab/README.md b/actix-web-lab/README.md index efc23f66..e56d25d7 100644 --- a/actix-web-lab/README.md +++ b/actix-web-lab/README.md @@ -3,10 +3,10 @@ > Experimental extractors, middleware, and other extras for possible inclusion in Actix Web. [![crates.io](https://img.shields.io/crates/v/actix-web-lab?label=latest)](https://crates.io/crates/actix-web-lab) -[![Documentation](https://docs.rs/actix-web-lab/badge.svg)](https://docs.rs/actix-web-lab/0.16.6) +[![Documentation](https://docs.rs/actix-web-lab/badge.svg)](https://docs.rs/actix-web-lab/0.16.7) ![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-web-lab.svg)
-[![dependency status](https://deps.rs/crate/actix-web-lab/0.16.6/status.svg)](https://deps.rs/crate/actix-web-lab/0.16.6) +[![dependency status](https://deps.rs/crate/actix-web-lab/0.16.7/status.svg)](https://deps.rs/crate/actix-web-lab/0.16.7) [![Download](https://img.shields.io/crates/d/actix-web-lab.svg)](https://crates.io/crates/actix-web-lab) [![CircleCI](https://circleci.com/gh/robjtede/actix-web-lab/tree/main.svg?style=shield)](https://circleci.com/gh/robjtede/actix-web-lab/tree/main) @@ -16,60 +16,60 @@ ### Responders -- `Csv`: efficient CSV streaming [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/respond/struct.Csv.html) -- `NdJson`: efficient NDJSON streaming [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/respond/struct.NdJson.html) -- `DisplayStream`: efficient line-by-line `Display` streaming [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/respond/struct.DisplayStream.html) -- `Html`: basic string wrapper that responds with HTML Content-Type [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/respond/struct.Html.html) +- `Csv`: efficient CSV streaming [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/respond/struct.Csv.html) +- `NdJson`: efficient NDJSON streaming [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/respond/struct.NdJson.html) +- `DisplayStream`: efficient line-by-line `Display` streaming [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/respond/struct.DisplayStream.html) +- `Html`: basic string wrapper that responds with HTML Content-Type [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/respond/struct.Html.html) ### Middleware -- `from_fn`: use an async function as a middleware [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/middleware/fn.from_fn.html) -- `RedirectHttps`: middleware to redirect traffic to HTTPS if connection is insecure with optional HSTS [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/middleware/struct.RedirectHttps.html) -- `redirect_to_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/middleware/fn.redirect_to_www.html) -- `ErrorHandlers`: alternative error handler middleware with simpler interface [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/middleware/struct.ErrorHandlers.html) -- `NormalizePath`: alternative path normalizing middleware with redirect option [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/middleware/struct.NormalizePath.html) -- `CatchPanic`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/middleware/struct.CatchPanic.html) -- `PanicReporter`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/middleware/struct.PanicReporter.html) +- `from_fn`: use an async function as a middleware [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/middleware/fn.from_fn.html) +- `RedirectHttps`: middleware to redirect traffic to HTTPS if connection is insecure with optional HSTS [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/middleware/struct.RedirectHttps.html) +- `redirect_to_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/middleware/fn.redirect_to_www.html) +- `ErrorHandlers`: alternative error handler middleware with simpler interface [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/middleware/struct.ErrorHandlers.html) +- `NormalizePath`: alternative path normalizing middleware with redirect option [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/middleware/struct.NormalizePath.html) +- `CatchPanic`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/middleware/struct.CatchPanic.html) +- `PanicReporter`: catch panics in wrapped handlers and middleware, returning empty 500 responses [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/middleware/struct.PanicReporter.html) ### Extractors -- `LazyData`: app data/state initialized on first use [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.LazyData.html) -- `SwapData`: app data/state that can be replaced at runtime (alternative to `Data>`) [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.SwapData.html) -- `LocalData`: app data/state that uses an `Rc` internally, avoiding atomic overhead (alternative to `Data>`) [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.DataSwap.html) -- `Json`: simplified JSON extractor with const-generic limits [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.Json.html) -- `Path`: simplified path parameter extractor that supports destructuring [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.Path.html) -- `Query`: simplified query-string extractor that can also collect multi-value items [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.Query.html) -- `RequestSignature`: wraps an extractor and calculates a request signature alongside [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.RequestSignature.html) -- `BodyLimit`: wraps a body extractor and prevents DoS attacks by limiting payload size [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/extract/struct.BodyLimit.html) +- `LazyData`: app data/state initialized on first use [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.LazyData.html) +- `SwapData`: app data/state that can be replaced at runtime (alternative to `Data>`) [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.SwapData.html) +- `LocalData`: app data/state that uses an `Rc` internally, avoiding atomic overhead (alternative to `Data>`) [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.DataSwap.html) +- `Json`: simplified JSON extractor with const-generic limits [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.Json.html) +- `Path`: simplified path parameter extractor that supports destructuring [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.Path.html) +- `Query`: simplified query-string extractor that can also collect multi-value items [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.Query.html) +- `RequestSignature`: wraps an extractor and calculates a request signature alongside [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.RequestSignature.html) +- `BodyLimit`: wraps a body extractor and prevents DoS attacks by limiting payload size [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/extract/struct.BodyLimit.html) ### Macros -- `FromRequest`: Derive macro to implement `FromRequest` on an aggregate struct of other extractors [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/derive.FromRequest.html) +- `FromRequest`: Derive macro to implement `FromRequest` on an aggregate struct of other extractors [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/derive.FromRequest.html) ### Headers -- `StrictTransportSecurity`: Strict-Transport-Security (HSTS) configuration [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/header/struct.StrictTransportSecurity.html) -- `CacheControl`: Cache-Control typed header with support for modern directives [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/header/struct.CacheControl.html) -- `ContentLength`: Content-Length typed header [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/header/struct.CacheControl.html) +- `StrictTransportSecurity`: Strict-Transport-Security (HSTS) configuration [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/header/struct.StrictTransportSecurity.html) +- `CacheControl`: Cache-Control typed header with support for modern directives [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/header/struct.CacheControl.html) +- `ContentLength`: Content-Length typed header [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/header/struct.CacheControl.html) ### Body Types -- `channel`: a simple channel-like body type with a sender side that can be used from another thread [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/body/fn.channel.html) +- `channel`: a simple channel-like body type with a sender side that can be used from another thread [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/body/fn.channel.html) ### Services -- `Redirect`: simple redirects [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/web/struct.Redirect.html) -- `spa`: Easy Single-page Application (SPA) service [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/web/fn.spa.html) +- `Redirect`: simple redirects [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/web/struct.Redirect.html) +- `spa`: Easy Single-page Application (SPA) service [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/web/fn.spa.html) ### Route Guards -- `Acceptable`: verifies that an `Accept` header is present and it contains a compatible MIME type [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/guard/struct.Acceptable.html) +- `Acceptable`: verifies that an `Accept` header is present and it contains a compatible MIME type [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/guard/struct.Acceptable.html) ### Test Utilities -- `test_request`: Construct `TestRequest` using an HTTP-like DSL [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/test/macro.assert_response_matches.html) -- `assert_response_matches`: quickly write tests that check various parts of a `ServiceResponse` [(docs)](https://docs.rs/actix-web-lab/0.16.6/actix_web_lab/test/macro.assert_response_matches.html) +- `test_request`: Construct `TestRequest` using an HTTP-like DSL [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/test/macro.assert_response_matches.html) +- `assert_response_matches`: quickly write tests that check various parts of a `ServiceResponse` [(docs)](https://docs.rs/actix-web-lab/0.16.7/actix_web_lab/test/macro.assert_response_matches.html) ## Things To Know About This Crate