fix: doc-tests
This commit is contained in:
parent
dee03ecf33
commit
1b8a9f9bb3
4 changed files with 10 additions and 10 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -1,6 +1,6 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "addr2line"
|
||||
|
@ -641,7 +641,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "leptos_reactive_axum"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"axum-test",
|
||||
|
@ -657,7 +657,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "leptos_reactive_axum_macros"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
@ -3,14 +3,14 @@ members = ["macros", "."]
|
|||
|
||||
[package]
|
||||
name = "leptos_reactive_axum"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
edition = "2021"
|
||||
description = "reactive context for axum handlers"
|
||||
authors = ["davidontop <me@davidon.top>"]
|
||||
authors = ["DavidOnTop <me@davidon.top>"]
|
||||
readme = "README.md"
|
||||
documentation = "https://docs.rs/leptos_reactive_axum"
|
||||
license = "MIT"
|
||||
repository = "https://git.davidon.top/public/leptos_reactive_axum.git"
|
||||
repository = "https://github.com/davidon-top/leptos_reactive_axum.git"
|
||||
|
||||
[dependencies]
|
||||
leptos_reactive_axum_macros = { path = "./macros", version = "1", optional = true }
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
[package]
|
||||
name = "leptos_reactive_axum_macros"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
edition = "2021"
|
||||
description = "reactive context for axum handlers"
|
||||
authors = ["davidontop <me@davidon.top>"]
|
||||
authors = ["DavidOnTop <me@davidon.top>"]
|
||||
readme = "../README.md"
|
||||
documentation = "https://docs.rs/leptos_reactive_axum_macros"
|
||||
license = "MIT"
|
||||
repository = "https://git.davidon.top/public/leptos_reactive_axum.git"
|
||||
repository = "https://github.com/davidon-top/leptos_reactive_axum.git"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
|
|
@ -4,7 +4,7 @@ use axum::{extract::Request, response::Response};
|
|||
use tower::{Layer, Service};
|
||||
|
||||
/// ```rust
|
||||
/// axum::Router::new().layer(ReactiveLayer);
|
||||
/// axum::Router::<()>::new().layer(leptos_reactive_axum::middleware::ReactiveLayer);
|
||||
/// ```
|
||||
#[derive(Clone)]
|
||||
pub struct ReactiveLayer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue