From e3364bc7f0b56800d25f00ce89139328d0029542 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 31 Jan 2022 22:22:41 +0100 Subject: [PATCH] Reference axum-macros instead of axum-debug (#738) * Reference axum-macros instead of axum-debug * changelog --- axum/CHANGELOG.md | 7 ++++++- axum/src/docs/handlers_intro.md | 2 +- axum/src/handler/mod.rs | 4 ++-- axum/src/lib.rs | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 592e319d..0aad6f78 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -7,7 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased -- None. +- Reference [axum-macros] instead of [axum-debug]. The latter has been superseded by + axum-macros and is deprecated ([#738]) + +[#738]: https://github.com/tokio-rs/axum/pull/738 +[axum-debug]: https://docs.rs/axum-debug +[axum-macros]: https://docs.rs/axum-macros # 0.4.4 (13. January, 2021) diff --git a/axum/src/docs/handlers_intro.md b/axum/src/docs/handlers_intro.md index 4da89baf..7697e127 100644 --- a/axum/src/docs/handlers_intro.md +++ b/axum/src/docs/handlers_intro.md @@ -5,4 +5,4 @@ can be converted [into a response](crate::response). Handlers is where your application logic lives and axum applications are built by routing between handlers. -[`debug_handler`]: https://docs.rs/axum-debug/latest/axum_debug/attr.debug_handler.html +[`debug_handler`]: https://docs.rs/axum-macros/latest/axum_macros/attr.debug_handler.html diff --git a/axum/src/handler/mod.rs b/axum/src/handler/mod.rs index 57a09444..f30fb775 100644 --- a/axum/src/handler/mod.rs +++ b/axum/src/handler/mod.rs @@ -66,9 +66,9 @@ //! //! This error doesn't tell you _why_ your function doesn't implement //! [`Handler`]. It's possible to improve the error with the [`debug_handler`] -//! proc-macro from the [axum-debug] crate. +//! proc-macro from the [axum-macros] crate. //! -//! [axum-debug]: https://docs.rs/axum-debug +//! [axum-macros]: https://docs.rs/axum-macros use crate::{ body::{boxed, Body, Bytes, HttpBody}, diff --git a/axum/src/lib.rs b/axum/src/lib.rs index e7cdb9fc..dd188c7c 100644 --- a/axum/src/lib.rs +++ b/axum/src/lib.rs @@ -403,8 +403,8 @@ //! [`HeaderMap`]: http::header::HeaderMap //! [`Request`]: http::Request //! [customize-extractor-error]: https://github.com/tokio-rs/axum/blob/main/examples/customize-extractor-error/src/main.rs -//! [axum-debug]: https://docs.rs/axum-debug -//! [`debug_handler`]: https://docs.rs/axum-debug/latest/axum_debug/attr.debug_handler.html +//! [axum-macros]: https://docs.rs/axum-macros +//! [`debug_handler`]: https://docs.rs/axum-macros/latest/axum_macros/attr.debug_handler.html //! [`Handler`]: crate::handler::Handler //! [`Infallible`]: std::convert::Infallible //! [load shed]: tower::load_shed