Cargo Features

axum-htmx has no features set by default.

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

Affects axum-htmx::guard

serde

Enables serde and serde_json

serde:

Optional dependencies required for the serde feature.

Affects location::HxLocation.options, location::LocationOptions, trigger::HxEvent.data

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?