feat: middleware
This commit is contained in:
parent
7c76a4a04e
commit
4e65532679
11 changed files with 138 additions and 39 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "leptos_reactive_axum_macros"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
description = "reactive context for axum handlers"
|
||||
authors = ["davidontop <me@davidon.top>"]
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
mod reactive;
|
||||
|
||||
/// macro that when applied on an axum handler will provide leptos_reactive runtime and will allow you to use `leptos_reactive_axum::extract` by providing a context holding request parts
|
||||
/// WARNING: inserts .unwrap() into handlers to make types the same as in function arguments, use middleware to avoid this
|
||||
#[proc_macro_attribute]
|
||||
pub fn reactive(
|
||||
attr: proc_macro::TokenStream,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue