From 4c220d8b1e8c569c792dddde11577bfc517acd16 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 8 Aug 2023 12:00:10 +0200 Subject: [PATCH 1/2] Add `docsrs` feature to axum-core --- axum-core/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml index 11d8635479..f6b1c88057 100644 --- a/axum-core/Cargo.toml +++ b/axum-core/Cargo.toml @@ -52,3 +52,7 @@ allowed = [ "http_body", "tower_layer", ] + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] From 87d3d8570ff7bbf22229c42afe9d4b12f22c9a91 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 8 Aug 2023 12:01:02 +0200 Subject: [PATCH 2/2] also axum-macros --- axum-macros/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/axum-macros/Cargo.toml b/axum-macros/Cargo.toml index a087aff4de..b5ef1c8ec5 100644 --- a/axum-macros/Cargo.toml +++ b/axum-macros/Cargo.toml @@ -41,3 +41,7 @@ trybuild = "1.0.63" [package.metadata.cargo-public-api-crates] allowed = [] + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"]