github tokio-rs/axum axum-v0.6.0-rc.5
axum - v0.6.0-rc.5

latest releases: axum-v0.8.0-alpha.1, axum-extra-v0.10.0-alpha.1, axum-macros-v0.5.0-alpha.1...
pre-release24 months ago
  • breaking: Router::with_state is no longer a constructor. It is instead
    used to convert the router into a RouterService (#1532)

    This nested router on 0.6.0-rc.4

    Router::with_state(state).route(...);

    Becomes this in 0.6.0-rc.5

    Router::new().route(...).with_state(state);
  • breaking:: Router::inherit_state has been removed. Use
    Router::with_state instead (#1532)

  • breaking:: Router::nest and Router::merge now only supports nesting
    routers that use the same state type as the router they're being merged into.
    Use FromRef for substates (#1532)

  • added: Add accept_unmasked_frames setting in WebSocketUpgrade (#1529)

  • fixed: Nested routers will now inherit fallbacks from outer routers (#1521)

  • added: Add WebSocketUpgrade::on_failed_upgrade to customize what to do
    when upgrading a connection fails (#1539)

Don't miss a new axum release

NewReleases is sending notifications on new releases.