From 8c31bee9bccf28720c3b5d89a1d4e554fcb0efff Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 1 Jul 2022 13:35:52 +0200 Subject: [PATCH] docsrs cfg fixes (#1137) * Remove unused attribute in axum-core * Fix docs.rs package metadata for axum-extra --- axum-core/src/lib.rs | 1 - axum-extra/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/axum-core/src/lib.rs b/axum-core/src/lib.rs index 6d15aade..63e363e1 100644 --- a/axum-core/src/lib.rs +++ b/axum-core/src/lib.rs @@ -46,7 +46,6 @@ #![deny(unreachable_pub, private_in_public)] #![allow(elided_lifetimes_in_paths, clippy::type_complexity)] #![forbid(unsafe_code)] -#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(test, allow(clippy::float_cmp))] #[macro_use] diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index 47b5ca64..e9abc7fe 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -58,4 +58,4 @@ tower = { version = "0.4", features = ["util"] } [package.metadata.docs.rs] all-features = true -rustdocflags = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"]