mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-02 15:24:54 +00:00
Fix axum-extra's optional feature documentation (#663)
This commit is contained in:
parent
9f5f29dfba
commit
7df611319e
@ -31,3 +31,7 @@ serde_json = { version = "1.0.71", optional = true }
|
|||||||
hyper = "0.14"
|
hyper = "0.14"
|
||||||
tokio = { version = "1.14", features = ["full"] }
|
tokio = { version = "1.14", features = ["full"] }
|
||||||
tower = { version = "0.4", features = ["util"] }
|
tower = { version = "0.4", features = ["util"] }
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdocflags = ["--cfg", "docsrs"]
|
||||||
|
@ -28,6 +28,7 @@ use serde::Serialize;
|
|||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "erased-json")))]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct ErasedJson(serde_json::Result<Vec<u8>>);
|
pub struct ErasedJson(serde_json::Result<Vec<u8>>);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user