Skip to content

Releases: tokio-rs/axum

axum-extra - v0.7.0

03 Mar 17:20
bc3c35e
Compare
Choose a tag to compare
  • 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)
  • added: Implement Clone for CookieJar, PrivateCookieJar and SignedCookieJar (#1808)
  • fixed: Add #[must_use] attributes to types that do nothing unless used (#1809)

axum-core - v0.3.3

03 Mar 17:18
bc3c35e
Compare
Choose a tag to compare
  • fixed: Add #[must_use] attributes to types that do nothing unless used (#1809)

axum - v0.6.9

27 Feb 08:42
08bac36
Compare
Choose a tag to compare
  • changed: Update to tower-http 0.4. axum is still compatible with tower-http 0.3 (#1783)

axum-extra - v0.6.0

27 Feb 08:43
08bac36
Compare
Choose a tag to compare
  • breaking: Change casing of ProtoBuf to Protobuf (#1595)

  • breaking: SpaRouter has been removed. Use ServeDir and ServeFile
    from tower-http instead:

    // before
    Router::new().merge(SpaRouter::new("/assets", "dist"));
    
    // with ServeDir
    Router::new().nest_service("/assets", ServeDir::new("dist"));
    
    // before with `index_file`
    Router::new().merge(SpaRouter::new("/assets", "dist").index_file("index.html"));
    
    // with ServeDir + ServeFile
    Router::new().nest_service(
        "/assets",
        ServeDir::new("dist").not_found_service(ServeFile::new("dist/index.html")),
    );

    See the static-file-server-example for more examples (#1784)

axum - v0.6.8

24 Feb 13:24
3747877
Compare
Choose a tag to compare
  • fixed: Fix Allow missing from routers with middleware (#1773)
  • added: Add KeepAlive::event for customizing the event sent for SSE keep alive (#1729)

axum - v0.6.7

17 Feb 14:08
277be8f
Compare
Choose a tag to compare
  • added: Add FormRejection::FailedToDeserializeFormBody which is returned
    if the request body couldn't be deserialized into the target type, as opposed
    to FailedToDeserializeForm which is only for query parameters (#1683)
  • added: Add MockConnectInfo for setting ConnectInfo during tests (#1767)

axum - v0.6.6

12 Feb 11:42
c18ff9d
Compare
Choose a tag to compare
  • fixed: Enable passing MethodRouter to Router::fallback (#1730)

axum-macros - v0.3.4

12 Feb 11:41
c18ff9d
Compare
Choose a tag to compare
  • fixed: Fix #[derive(FromRef)] with Copy fields generating clippy warnings (#1749)

axum-extra - v0.5.0

12 Feb 11:43
c18ff9d
Compare
Choose a tag to compare
  • added: Add option_layer for converting an Option<Layer> into a Layer (#1696)
  • added: Implement Layer and Service for Either (#1696)
  • added: Add TypedPath::with_query_params (#1744)
  • breaking: Update to cookie 0.17 (#1747)

axum - v0.6.5

11 Feb 21:34
93ecabf
Compare
Choose a tag to compare
  • fixed: Fix #[debug_handler] sometimes giving wrong borrow related suggestions (#1710)
  • Document gotchas related to using impl IntoResponse as the return type from handler functions (#1736)