/axum-inertia

Inertia protocol implementation for axum

Primary LanguageRust

Crates.io Documentation

axum-inertia

Implementation of the inertia.js protocol for axum.

Provides an Inertia axum extractor to render responses like so:

async fn get_posts(i: Inertia) -> impl IntoResponse {
    i.render("Posts/Index", json!({ "posts": vec!["post one", "post two"] }))
}

See crate documentation for more information.

Making a new release

  1. Spin off a bump-vX.X.X branch
  2. Update the CHANGELOG; start a new [Unreleased] section
  3. Bump the version number in Cargo.toml
  4. Run cargo release --execute
  5. Merge PR if all goes well