github tokio-rs/axum axum-extra-v0.6.0
axum-extra - v0.6.0

latest releases: axum-v0.8.0-alpha.1, axum-extra-v0.10.0-alpha.1, axum-macros-v0.5.0-alpha.1...
20 months ago
  • 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)

Don't miss a new axum release

NewReleases is sending notifications on new releases.