Repository: netwo-io/apistos
Pull request #157 (2025-03-25 15:47:24)

Chore prepare 0.5.0
- Add compatibility with Rust edition 2024 (#150)
- Add configure for ServiceConfig (#151)
- Add Redirect (#152)


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index b01ae1d..d27ff4e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,7 +22,7 @@ documentation = "https://docs.rs/apistos/"
 license = "MIT OR Apache-2.0"
 rust-version = "1.85.0"
 publish = true
-version = "0.4.2"
+version = "0.5.0"
 
 [workspace.dependencies]
 actix-service = "2"
diff --git a/README.md b/README.md
index f1cc122..ae45edd 100644
--- a/README.md
+++ b/README.md
@@ -62,7 +62,7 @@ carpenters, craftsmen, metallurgy ... which can also be considered by some as th
 #schemars = "0.8"
 # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 schemars = { package = "apistos-schemars", version = "0.8" }
-apistos = "0.4"
+apistos = "0.5"
 ```
 
 ### Usage example
diff --git a/apistos-core/Cargo.toml b/apistos-core/Cargo.toml
index ad313e0..d02c87a 100644
--- a/apistos-core/Cargo.toml
+++ b/apistos-core/Cargo.toml
@@ -30,7 +30,7 @@ serde_qs = { workspace = true, features = ["actix4"], optional = true }
 uuid = { workspace = true, optional = true }
 url = { workspace = true, optional = true }
 
-apistos-models = { path = "../apistos-models", version = "0.4.2", features = ["deserialize"] }
+apistos-models = { path = "../apistos-models", version = "0.5.0", features = ["deserialize"] }
 
 [dev-dependencies]
 assert-json-diff = { workspace = true }
diff --git a/apistos-models/README.md b/apistos-models/README.md
index 93c521f..683ef6d 100644
--- a/apistos-models/README.md
+++ b/apistos-models/README.md
@@ -30,7 +30,7 @@ These models are not linked to any web framework.
 #schemars = "0.8"
 # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 schemars = { package = "apistos-schemars", version = "0.8" }
-apistos-models = "0.4"
+apistos-models = "0.5"
 ```
 
 ### About us
diff --git a/apistos-rapidoc/Cargo.toml b/apistos-rapidoc/Cargo.toml
index 9424d22..5e33e6b 100644
--- a/apistos-rapidoc/Cargo.toml
+++ b/apistos-rapidoc/Cargo.toml
@@ -14,7 +14,7 @@ rust-version.workspace = true
 license.workspace = true
 
 [dependencies]
-apistos-plugins = { path = "../apistos-plugins", version = "0.4.2" }
+apistos-plugins = { path = "../apistos-plugins", version = "0.5.0" }
 
 [lints]
 workspace = true
diff --git a/apistos-rapidoc/README.md b/apistos-rapidoc/README.md
index f8210b0..439b386 100644
--- a/apistos-rapidoc/README.md
+++ b/apistos-rapidoc/README.md
@@ -27,7 +27,7 @@ This crate is exposed through Apistos `rapidoc` feature.
 #schemars = "0.8"
 # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 schemars = { package = "apistos-schemars", version = "0.8" }
-apistos = { version = "0.3", feature = ["rapidoc"] }
+apistos = { version = "0.5", feature = ["rapidoc"] }
 ```
 
 ### About us
diff --git a/apistos-redoc/Cargo.toml b/apistos-redoc/Cargo.toml
index 3194428..9d970f8 100644
--- a/apistos-redoc/Cargo.toml
+++ b/apistos-redoc/Cargo.toml
@@ -14,7 +14,7 @@ rust-version.workspace = true
 license.workspace = true
 
 [dependencies]
-apistos-plugins = { path = "../apistos-plugins", version = "0.4.2" }
+apistos-plugins = { path = "../apistos-plugins", version = "0.5.0" }
 
 [lints]
 workspace = true
diff --git a/apistos-redoc/README.md b/apistos-redoc/README.md
index 1543db2..408a967 100644
--- a/apistos-redoc/README.md
+++ b/apistos-redoc/README.md
@@ -27,7 +27,7 @@ This crate is exposed through Apistos `redoc` feature.
 #schemars = "0.8"
 # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 schemars = { package = "apistos-schemars", version = "0.8" }
-apistos = { version = "0.4", feature = ["redoc"] }
+apistos = { version = "0.5", feature = ["redoc"] }
 ```
 
 ### About us
diff --git a/apistos-scalar/Cargo.toml b/apistos-scalar/Cargo.toml
index 61c686d..834085d 100644
--- a/apistos-scalar/Cargo.toml
+++ b/apistos-scalar/Cargo.toml
@@ -14,7 +14,7 @@ rust-version.workspace = true
 license.workspace = true
 
 [dependencies]
-apistos-plugins = { path = "../apistos-plugins", version = "0.4.2" }
+apistos-plugins = { path = "../apistos-plugins", version = "0.5.0" }
 
 [lints]
 workspace = true
diff --git a/apistos-scalar/README.md b/apistos-scalar/README.md
index ea2acb0..759b853 100644
--- a/apistos-scalar/README.md
+++ b/apistos-scalar/README.md
@@ -27,7 +27,7 @@ This crate is exposed through Apistos `scalar` feature.
 #schemars = "0.8"
 # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 schemars = { package = "apistos-schemars", version = "0.8" }
-apistos = { version = "0.4", feature = ["scalar"] }
+apistos = { version = "0.5", feature = ["scalar"] }
 ```
 
 ### About us
diff --git a/apistos-shuttle/Cargo.toml b/apistos-shuttle/Cargo.toml
index 557b487..bead79b 100644
--- a/apistos-shuttle/Cargo.toml
+++ b/apistos-shuttle/Cargo.toml
@@ -18,7 +18,7 @@ actix-web = { workspace = true }
 num_cpus = { workspace = true }
 shuttle-runtime = { workspace = true }
 
-apistos = { path = "../apistos", version = "0.4.2" }
+apistos = { path = "../apistos", version = "0.5.0" }
 
 [lints]
 workspace = true
diff --git a/apistos-shuttle/README.md b/apistos-shuttle/README.md
index f780a72..9ca68a2 100644
--- a/apistos-shuttle/README.md
+++ b/apistos-shuttle/README.md
@@ -25,8 +25,8 @@ This crate allows you to run an actix-web server documented with Apistos on [Shu
 #schemars = "0.8"
 # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 schemars = { package = "apistos-schemars", version = "0.8" }
-apistos = { version = "0.3" }
-apistos-shuttle = { version = "0.3" }
+apistos = { version = "0.5" }
+apistos-shuttle = { version = "0.5" }
 ```
 
 ### Example
diff --git a/apistos-swagger-ui/Cargo.toml b/apistos-swagger-ui/Cargo.toml
index 0b3433c..7f10575 100644
--- a/apistos-swagger-ui/Cargo.toml
+++ b/apistos-swagger-ui/Cargo.toml
@@ -14,7 +14,7 @@ rust-version.workspace = true
 license.workspace = true
 
 [dependencies]
-apistos-plugins = { path = "../apistos-plugins", version = "0.4.2" }
+apistos-plugins = { path = "../apistos-plugins", version = "0.5.0" }
 
 [lints]
 workspace = true
diff --git a/apistos-swagger-ui/README.md b/apistos-swagger-ui/README.md
index 3a4cb9b..3920f5b 100644
--- a/apistos-swagger-ui/README.md
+++ b/apistos-swagger-ui/README.md
@@ -27,7 +27,7 @@ This crate is exposed through Apistos `swagger-ui` feature.
 #schemars = "0.8"
 # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 schemars = { package = "apistos-schemars", version = "0.8" }
-apistos = { version = "0.3", feature = ["swagger-ui"] }
+apistos = { version = "0.5", feature = ["swagger-ui"] }
 ```
 
 ### About us
diff --git a/apistos/Cargo.toml b/apistos/Cargo.toml
index 797cccd..bd9cca7 100644
--- a/apistos/Cargo.toml
+++ b/apistos/Cargo.toml
@@ -26,25 +26,25 @@ schemars = { workspace = true }
 serde = { workspace = true }
 serde_json = { workspace = true }
 
-apistos-core = { path = "../apistos-core", version = "0.4.2" }
-apistos-gen = { path = "../apistos-gen", version = "0.4.2" }
-apistos-models = { path = "../apistos-models", version = "0.4.2" }
-apistos-plugins = { path = "../apistos-plugins", version = "0.4.2" }
-apistos-rapidoc = { path = "../apistos-rapidoc", version = "0.4.2", optional = true }
-apistos-redoc = { path = "../apistos-redoc", version = "0.4.2", optional = true }
-apistos-scalar = { path = "../apistos-scalar", version = "0.4.2", optional = true }
-apistos-swagger-ui = { path = "../apistos-swagger-ui", version = "0.4.2", optional = true }
+apistos-core = { path = "../apistos-core", version = "0.5.0" }
+apistos-gen = { path = "../apistos-gen", version = "0.5.0" }
+apistos-models = { path = "../apistos-models", version = "0.5.0" }
+apistos-plugins = { path = "../apistos-plugins", version = "0.5.0" }
+apistos-rapidoc = { path = "../apistos-rapidoc", version = "0.5.0", optional = true }
+apistos-redoc = { path = "../apistos-redoc", version = "0.5.0", optional = true }
+apistos-scalar = { path = "../apistos-scalar", version = "0.5.0", optional = true }
+apistos-swagger-ui = { path = "../apistos-swagger-ui", version = "0.5.0", optional = true }
 
 
 [dev-dependencies]
 actix-web-lab = { workspace = true }
 garde-actix-web = { workspace = true }
 
-apistos-models = { path = "../apistos-models", version = "0.4.2", features = ["deserialize"] }
-apistos-rapidoc = { path = "../apistos-rapidoc", version = "0.4.2" }
-apistos-redoc = { path = "../apistos-redoc", version = "0.4.2" }
-apistos-scalar = { path = "../apistos-scalar", version = "0.4.2" }
-apistos-swagger-ui = { path = "../apistos-swagger-ui", version = "0.4.2" }
+apistos-models = { path = "../apistos-models", version = "0.5.0", features = ["deserialize"] }
+apistos-rapidoc = { path = "../apistos-rapidoc", version = "0.5.0" }
+apistos-redoc = { path = "../apistos-redoc", version = "0.5.0" }
+apistos-scalar = { path = "../apistos-scalar", version = "0.5.0" }
+apistos-swagger-ui = { path = "../apistos-swagger-ui", version = "0.5.0" }
 
 [lints]
 workspace = true
diff --git a/apistos/src/lib.rs b/apistos/src/lib.rs
index d5a61e8..4f5e9ab 100644
--- a/apistos/src/lib.rs
+++ b/apistos/src/lib.rs
@@ -11,7 +11,7 @@
 //! #schemars = "0.8"
 //! # sadly we currently rely on a fork to fix multiple flatten for enums, related PR can be found here: https://github.com/GREsau/schemars/pull/264
 //! schemars = { package = "apistos-schemars", version = "0.8" }
-//! apistos = "0.4"
+//! apistos = "0.5"
 //! ```
 //!
 //! # Usage example


Test patch:
diff --git a/apistos-gen-test/Cargo.toml b/apistos-gen-test/Cargo.toml
index 0daf729..d9f3c9e 100644
--- a/apistos-gen-test/Cargo.toml
+++ b/apistos-gen-test/Cargo.toml
@@ -21,8 +21,8 @@ assert-json-diff = { workspace = true }
 chrono = { workspace = true, features = ["serde"] }
 futures-core = { workspace = true }
 apistos = { path = "../apistos", features = ["multipart", "uuid"] }
-apistos-core = { path = "../apistos-core", version = "0.4.2", features = ["actix-web-grants"] }
-apistos-gen = { path = "../apistos-gen", version = "0.4.2" }
+apistos-core = { path = "../apistos-core", version = "0.5.0", features = ["actix-web-grants"] }
+apistos-gen = { path = "../apistos-gen", version = "0.5.0" }
 # we use the "preserve_order" feature from schemars here following https://github.com/netwo-io/apistos/pull/78
 schemars = { workspace = true, features = ["preserve_order"] }
 serde = { workspace = true, features = ["derive"] }