leptos_reactive_axum_macros

Crates.ioleptos_reactive_axum_macros
lib.rsleptos_reactive_axum_macros
version
sourcesrc
created_at2024-06-15 09:45:18.210471
updated_at2024-10-20 09:07:15.035031
descriptionreactive context for axum handlers
homepage
repositoryhttps://github.com/davidon-top/leptos_reactive_axum.git
max_upload_size
id1272702
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(davidon-top)

documentation

https://docs.rs/leptos_reactive_axum_macros

README

whoami

Library providing utilities for using leptos_reactive runtime inside axum handlers. Also automaticly uses provide_context to make the request Parts available inside any function called by the handler.

But why?

When using something like the rstml-component crate it is usefull to be able to extract anything from parts inside any component. For example inside nav bar extract the path to be able to highlight active route. Additionally you can create a middleware layer that can add to the context things like IsLoggedIn or other information about the request that is used within more then one function/component called by the handler.

Commit count: 7

cargo fmt