From db22b7309dbd876a14aa13a94f5b2ae7edf24d22 Mon Sep 17 00:00:00 2001 From: John Downey Date: Fri, 3 Mar 2023 08:43:19 -0600 Subject: [PATCH] Remove remnants of spa feature (#1802) Co-authored-by: David Pedersen --- axum-extra/CHANGELOG.md | 2 ++ axum-extra/Cargo.toml | 1 - axum-extra/src/lib.rs | 1 - examples/static-file-server/Cargo.toml | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/axum-extra/CHANGELOG.md b/axum-extra/CHANGELOG.md index 1160edaa..ae628972 100644 --- a/axum-extra/CHANGELOG.md +++ b/axum-extra/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning]. # Unreleased +- **breaking:** Remove the `spa` feature which should have been removed in 0.6.0 ([#1802]) - **added:** Add `Multipart`. This is similar to `axum::extract::Multipart` except that it enforces field exclusivity at runtime instead of compile time, as this improves usability ([#1692]) @@ -14,6 +15,7 @@ and this project adheres to [Semantic Versioning]. - **fixed:** Add `#[must_use]` attributes to types that do nothing unless used ([#1809]) [#1692]: https://github.com/tokio-rs/axum/pull/1692 +[#1802]: https://github.com/tokio-rs/axum/pull/1802 [#1808]: https://github.com/tokio-rs/axum/pull/1808 [#1809]: https://github.com/tokio-rs/axum/pull/1809 diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index dea1767b..c9b9f29a 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -32,7 +32,6 @@ json-lines = [ multipart = ["dep:multer"] protobuf = ["dep:prost"] query = ["dep:serde", "dep:serde_html_form"] -spa = ["tower-http/fs"] typed-routing = ["dep:axum-macros", "dep:serde", "dep:percent-encoding", "dep:serde_html_form", "dep:form_urlencoded"] [dependencies] diff --git a/axum-extra/src/lib.rs b/axum-extra/src/lib.rs index 8cfcae9d..9391fcd1 100644 --- a/axum-extra/src/lib.rs +++ b/axum-extra/src/lib.rs @@ -20,7 +20,6 @@ //! `multipart` | Enables the `Multpart` extractor | No //! `protobuf` | Enables the `Protobuf` extractor and response | No //! `query` | Enables the `Query` extractor | No -//! `spa` | Enables the `Spa` router | No //! `typed-routing` | Enables the `TypedPath` routing utilities | No //! //! [`axum`]: https://crates.io/crates/axum diff --git a/examples/static-file-server/Cargo.toml b/examples/static-file-server/Cargo.toml index e500db72..7762350a 100644 --- a/examples/static-file-server/Cargo.toml +++ b/examples/static-file-server/Cargo.toml @@ -6,7 +6,7 @@ publish = false [dependencies] axum = { path = "../../axum" } -axum-extra = { path = "../../axum-extra", features = ["spa"] } +axum-extra = { path = "../../axum-extra" } tokio = { version = "1.0", features = ["full"] } tower = { version = "0.4", features = ["util"] } tower-http = { version = "0.4.0", features = ["fs", "trace"] }