From 7034dcc8517435688a21a7b5acdf1c361c393234 Mon Sep 17 00:00:00 2001 From: leone Date: Wed, 28 Feb 2024 15:42:04 +0100 Subject: [PATCH] chore: prepare 1.0 release (#13) * chore: prepare 1.0 release --- README.md | 2 +- ntex-cors/CHANGES.md | 4 ++++ ntex-cors/Cargo.toml | 2 +- ntex-cors/src/lib.rs | 9 ++------- ntex-files/CHANGES.md | 4 ++++ ntex-files/Cargo.toml | 2 +- ntex-identity/CHANGES.md | 5 +++-- ntex-identity/Cargo.toml | 2 +- ntex-multipart/CHANGES.md | 5 +++++ ntex-multipart/Cargo.toml | 2 +- ntex-session/CHANGES.md | 5 +++-- ntex-session/Cargo.toml | 2 +- 12 files changed, 27 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 46d894e8..9093effb 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

A collection of additional crates supporting the ntex frameworks.

-[![Build Status](https://github.com/ntex-rs/ntex-extras/workflows/CI%20(Linux)/badge.svg)](https://travis-ci.org/ntex-rs/ntex) +[![Build Status](https://github.com/ntex-rs/ntex-extras/actions/workflows/linux.yml/badge.svg)](https://github.com/ntex-rs/ntex-extras/actions/workflows/linux.yml) [![Version](https://img.shields.io/badge/rustc-1.75+-lightgray.svg)](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html) [![codecov](https://codecov.io/gh/ntex-rs/ntex-extras/branch/master/graph/badge.svg)](https://codecov.io/gh/ntex-rs/ntex-extras) diff --git a/ntex-cors/CHANGES.md b/ntex-cors/CHANGES.md index 28475dc6..7a29d341 100644 --- a/ntex-cors/CHANGES.md +++ b/ntex-cors/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [1.0.0] - 2024-02-28 + +* Update the `ntex` dependency to 1.1 + ## [0.1.0] - 2020-10-05 * Initial release diff --git a/ntex-cors/Cargo.toml b/ntex-cors/Cargo.toml index 2670ddbd..c747a7ff 100644 --- a/ntex-cors/Cargo.toml +++ b/ntex-cors/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-cors" -version = "0.5.0" +version = "1.0.0" authors = ["ntex contributors "] description = "Cross-origin resource sharing (CORS) for ntex applications." readme = "README.md" diff --git a/ntex-cors/src/lib.rs b/ntex-cors/src/lib.rs index d1a288e6..5ecb79ef 100644 --- a/ntex-cors/src/lib.rs +++ b/ntex-cors/src/lib.rs @@ -104,20 +104,15 @@ impl WebResponseError for CorsError { /// allowed). /// /// `Default` is implemented for this enum and is `All`. -#[derive(Clone, Debug, Eq, PartialEq)] +#[derive(Default, Clone, Debug, Eq, PartialEq)] pub enum AllOrSome { /// Everything is allowed. Usually equivalent to the "*" value. + #[default] All, /// Only some of `T` is allowed Some(T), } -impl Default for AllOrSome { - fn default() -> Self { - AllOrSome::All - } -} - impl AllOrSome { /// Returns whether this is an `All` variant pub fn is_all(&self) -> bool { diff --git a/ntex-files/CHANGES.md b/ntex-files/CHANGES.md index 9f21ddef..d44b5b34 100644 --- a/ntex-files/CHANGES.md +++ b/ntex-files/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [1.0.0] - 2024-02-28 + +* Update the `ntex` dependency to 1.1 + ## [0.4.1] - 2024-01-17 * Fix compatibility #11 diff --git a/ntex-files/Cargo.toml b/ntex-files/Cargo.toml index ba048b99..2eed0317 100644 --- a/ntex-files/Cargo.toml +++ b/ntex-files/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-files" -version = "0.4.1" +version = "1.0.0" authors = ["ntex contributors "] description = "Static files support for ntex web." readme = "README.md" diff --git a/ntex-identity/CHANGES.md b/ntex-identity/CHANGES.md index 0c9809ea..511bcefe 100644 --- a/ntex-identity/CHANGES.md +++ b/ntex-identity/CHANGES.md @@ -1,8 +1,9 @@ # Changes -## [Unreleased] - 2020-xx-xx +## [1.0.0] - 2024-02-28 -* Update the `time` dependency to 0.2.5 +* Update the `ntex` dependency to 1.1 +* Update the `time` dependency to 0.3 ## [0.2.1] - 2020-01-10 diff --git a/ntex-identity/Cargo.toml b/ntex-identity/Cargo.toml index 197553b6..a0069c19 100644 --- a/ntex-identity/Cargo.toml +++ b/ntex-identity/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-identity" -version = "0.4.0" +version = "1.0.0" authors = ["ntex contributors "] description = "Identity service for ntex web framework." readme = "README.md" diff --git a/ntex-multipart/CHANGES.md b/ntex-multipart/CHANGES.md index ed5c8ad3..b336178e 100644 --- a/ntex-multipart/CHANGES.md +++ b/ntex-multipart/CHANGES.md @@ -1,5 +1,10 @@ # Changes +## [1.0.0] - 2024-02-28 + +* Update the `ntex` dependency to 1.1 +* Rename `ParseError` to `DecodeError` + ## [0.2.1] - 2020-01-xx * Remove the unused `time` dependency diff --git a/ntex-multipart/Cargo.toml b/ntex-multipart/Cargo.toml index ca3fba3c..330969b3 100644 --- a/ntex-multipart/Cargo.toml +++ b/ntex-multipart/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-multipart" -version = "0.4.0" +version = "1.0.0" authors = ["ntex contributors "] description = "Multipart support for ntex web framework." readme = "README.md" diff --git a/ntex-session/CHANGES.md b/ntex-session/CHANGES.md index f6753ae5..a8ed5bcb 100644 --- a/ntex-session/CHANGES.md +++ b/ntex-session/CHANGES.md @@ -1,8 +1,9 @@ # Changes -## [Unreleased] - 2020-01-xx +## [1.0.0] 2024-02-28 -* Update the `time` dependency to 0.2.5 +* Update the `ntex` dependency to 1.1 +* Update the `time` dependency to 0.3 * [#1292](https://github.com/actix/actix-web/pull/1292) Long lasting auto-prolonged session ## [0.3.0] - 2019-12-20 diff --git a/ntex-session/Cargo.toml b/ntex-session/Cargo.toml index c270f562..5feeffe7 100644 --- a/ntex-session/Cargo.toml +++ b/ntex-session/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-session" -version = "0.4.0" +version = "1.0.0" authors = ["ntex contributors "] description = "Session for ntex web framework." readme = "README.md"