Skip to content

Commit

Permalink
Fix axum-extra's optional feature documentation (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaJewson authored Dec 27, 2021
1 parent 9f5f29d commit 7df6113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions axum-extra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions axum-extra/src/response/erased_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>);

Expand Down

0 comments on commit 7df6113

Please sign in to comment.