diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml index 4373dadcfe..68dc659f15 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 58368044dd..662cb5f1d8 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"]