Cargo Features

axum-htmx has no features set by default.

axum-htmx = { version = "0.5.0", features = ["unstable", "guards", "serde"] }
guards = futures-core, pin-project-lite, tower

Affects axum-htmx::guard


Enables serde and serde_json


Optional dependencies required for the serde feature.

Affects location::HxLocation.options, location::LocationOptions,

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tower guards?

Enables tower

Optional dependencies required for the guards feature.

futures-core guards?
pin-project-lite guards?