Fix axum-extra's optional feature documentation (#663)

This commit is contained in:
Sabrina Jewson 2021-12-27 17:12:46 +00:00 committed by GitHub
parent 9f5f29dfba
commit 7df611319e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -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"]

View file

@ -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>>);