From 449e4c11382a64f36771f5f58bc5e5eaff18cb52 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 11d86354..f6b1c880 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"] diff --git a/axum-macros/Cargo.toml b/axum-macros/Cargo.toml index 561ee520..ef98c51b 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"]