103 releases
| 0.8.9 | Apr 16, 2026 |
|---|---|
| 0.8.8 | Feb 16, 2026 |
| 0.8.7 | Nov 22, 2025 |
| 0.8.5 | Jul 21, 2025 |
| 0.0.2 | Nov 28, 2022 |
#2182 in HTTP server
63,420 downloads per month
Used in 34 crates
(23 directly)
2MB
40K
SLoC
Provides functions to easily integrate Leptos with Axum.
JS Fetch Integration
The leptos_axum integration supports running in JavaScript-hosted WebAssembly
runtimes, e.g., running inside Deno, Cloudflare Workers, or other JS environments.
To run in this environment, you need to disable the default feature set and enable
the wasm feature on leptos_axum in your Cargo.toml.
leptos_axum = { version = "0.6.0", default-features = false, features = ["wasm"] }
Features
default: supports running in a typical native Tokio/Axum environmentwasm: withdefault-features = false, supports running in a JS Fetch-based environment
Important Note
Prior to 0.5, using default-features = false on leptos_axum simply did nothing. Now, it actively
disables features necessary to support the normal native/Tokio runtime environment we create. This can
generate errors like the following, which don’t point to an obvious culprit:
spawn_localcalled from outside of atask::LocalSet
If you are not using the wasm feature, do not set default-features = false on this package.
More information
For more details on how to use the integrations, see the
examples
directory in the Leptos repository.
Dependencies
~34–47MB
~855K SLoC