From 508f7d8166cef43b30ceedae5f776fac7b4d0cb4 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sat, 16 Sep 2023 21:47:49 +0200 Subject: [PATCH] Add `docsrs` feature to axum-core and axum-macros (#2164) --- axum-core/Cargo.toml | 4 ++++ axum-macros/Cargo.toml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml index 4373dadc..68dc659f 100644 --- a/axum-core/Cargo.toml +++ b/axum-core/Cargo.toml @@ -49,3 +49,7 @@ allowed = [ "http_body", "tower_layer", ] + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/axum-macros/Cargo.toml b/axum-macros/Cargo.toml index 58368044..662cb5f1 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"]