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