From 73fcbb6ffa1b9788ee0edbe8f85f0030af53139d Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 25 Feb 2022 21:13:11 +0000 Subject: [PATCH] prepare actix-web-lab release 0.12.0 --- CHANGELOG.md | 3 +++ Cargo.toml | 2 +- README.md | 38 +++++++++++++++++++------------------- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab51e236..9eccf177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## Unreleased - 2021-xx-xx + + +## 0.12.0 - 2022-02-25 - Add `Path` extractor that can be deconstructed. - `Json` limit const generic parameter now has a default and can be omitted. - Update `actix-web` dependency to `4.0.0`. diff --git a/Cargo.toml b/Cargo.toml index 97e785fc..d1f1b320 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-web-lab" -version = "0.11.0" +version = "0.12.0" authors = ["Rob Ede "] description = "In-progress extractors and middleware for Actix Web" keywords = ["actix", "http", "web", "framework", "async"] diff --git a/README.md b/README.md index aa778754..29cc6460 100644 --- a/README.md +++ b/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.11.0) +[![Documentation](https://docs.rs/actix-web-lab/badge.svg)](https://docs.rs/actix-web-lab/0.12.0) ![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.11.0/status.svg)](https://deps.rs/crate/actix-web-lab/0.11.0) +[![dependency status](https://deps.rs/crate/actix-web-lab/0.12.0/status.svg)](https://deps.rs/crate/actix-web-lab/0.12.0) [![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) @@ -14,33 +14,33 @@ **[Feature Voting →](https://github.com/robjtede/actix-web-lab/discussions/7)** ### Responders -- `Csv`: efficient CSV streaming [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/respond/struct.Csv.html) -- `NdJson`: efficient NDJSON streaming [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/respond/struct.NdJson.html) -- `DisplayStream`: efficient line-by-line `Display` streaming [(docs)](https://docs.rs/actix-web-lab/0.11.0/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.11.0/actix_web_lab/respond/struct.Html.html) +- `Csv`: efficient CSV streaming [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/respond/struct.Csv.html) +- `NdJson`: efficient NDJSON streaming [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/respond/struct.NdJson.html) +- `DisplayStream`: efficient line-by-line `Display` streaming [(docs)](https://docs.rs/actix-web-lab/0.12.0/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.12.0/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.11.0/actix_web_lab/middleware/fn.from_fn.html) -- `redirect_to_https`: function middleware to redirect traffic to HTTPS if connection is insecure [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/middleware/fn.redirect_to_https.html) -- `redirect_to_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.11.0/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.11.0/actix_web_lab/middleware/struct.ErrorHandlers.html) +- `from_fn`: use an async function as a middleware [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/middleware/fn.from_fn.html) +- `redirect_to_https`: function middleware to redirect traffic to HTTPS if connection is insecure [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/middleware/fn.redirect_to_https.html) +- `redirect_to_www`: function middleware to redirect traffic to `www.` if not already there [(docs)](https://docs.rs/actix-web-lab/0.12.0/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.12.0/actix_web_lab/middleware/struct.ErrorHandlers.html) ### Extractors -- `LazyData`: app data/state initialized on first use [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/extract/struct.LazyData.html) -- `Json`: simplified JSON extractor with const-generic limits [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/extract/struct.Json.html) -- `Query`: simplified query-string extractor [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/extract/struct.Query.html) -- `BodyHash`: wraps an extractor and calculates a body checksum hash alongside [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/extract/struct.BodyHash.html) -- `BodyHmac`: wraps an extractor and calculates a body HMAC alongside [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/extract/struct.BodyHmac.html) +- `LazyData`: app data/state initialized on first use [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/extract/struct.LazyData.html) +- `Json`: simplified JSON extractor with const-generic limits [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/extract/struct.Json.html) +- `Query`: simplified query-string extractor [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/extract/struct.Query.html) +- `BodyHash`: wraps an extractor and calculates a body checksum hash alongside [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/extract/struct.BodyHash.html) +- `BodyHmac`: wraps an extractor and calculates a body HMAC alongside [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/extract/struct.BodyHmac.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.11.0/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.12.0/actix_web_lab/body/fn.channel.html) ### Services -- `Redirect`: simple redirects [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/web/struct.Redirect.html) -- `spa`: Easy Single-page Application (SPA) service [(docs)](https://docs.rs/actix-web-lab/0.11.0/actix_web_lab/web/fn.spa.html) +- `Redirect`: simple redirects [(docs)](https://docs.rs/actix-web-lab/0.12.0/actix_web_lab/web/struct.Redirect.html) +- `spa`: Easy Single-page Application (SPA) service [(docs)](https://docs.rs/actix-web-lab/0.12.0/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.11.0/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.12.0/actix_web_lab/guard/struct.Acceptable.html) ## Things To Know About This Crate