mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-26 00:56:27 +01:00
Fix axum-extra's optional feature documentation (#663)
This commit is contained in:
parent
9f5f29dfba
commit
7df611319e
2 changed files with 5 additions and 0 deletions
|
@ -31,3 +31,7 @@ serde_json = { version = "1.0.71", optional = true }
|
|||
hyper = "0.14"
|
||||
tokio = { version = "1.14", features = ["full"] }
|
||||
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)]
|
||||
pub struct ErasedJson(serde_json::Result<Vec<u8>>);
|
||||
|
||||
|
|
Loading…
Reference in a new issue