#axum #inertia #js #response #protocols #render #json

axum-inertia

An implementation of the Inertia.js protocol for Axum

11 releases (7 breaking)

new 0.8.1 Mar 17, 2025
0.7.0 Mar 3, 2025
0.6.0 Dec 5, 2024
0.5.0 Jun 26, 2024
0.2.0 Nov 28, 2023

#952 in Web programming

Download history 271/week @ 2024-12-01 53/week @ 2024-12-08 12/week @ 2024-12-15 3/week @ 2024-12-22 2/week @ 2025-01-05 6/week @ 2025-01-12 1/week @ 2025-01-26 14/week @ 2025-02-02 16/week @ 2025-02-09 128/week @ 2025-02-16 142/week @ 2025-02-23 557/week @ 2025-03-02 138/week @ 2025-03-09

966 downloads per month
Used in ruskit

MIT/Apache

42KB
847 lines

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. Merge PR
  5. On the commit on master, run cargo release (requires cargo-release -- this dry runs as a default to test)
  6. Update main branch locally and run cargo release --execute

Dependencies

~6–13MB
~164K SLoC