Skip to content

Commit

Permalink
Re-export debug_handler from axum (#1144)
Browse files Browse the repository at this point in the history
* Re-export `debug_handler` from axum

Fixes #1143

* also axum-extra
  • Loading branch information
davidpdrsn committed Jul 10, 2022
1 parent a05f6a0 commit a4a298c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion axum-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "axum-macros"
readme = "README.md"
repository = "https://github.com/tokio-rs/axum"
version = "0.2.3"
version = "0.2.3" # remember to also bump the version that axum and axum-extra depends on

[lib]
proc-macro = true
Expand Down
6 changes: 5 additions & 1 deletion axum/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

# Unreleased

- None.
- **added:** Added `debug_handler` which is an attribute macro that improves
type errors when applied to handler function. It is re-exported from
`axum-macros` ([#1144])

[#1144]: https://github.com/tokio-rs/axum/pull/1144

# 0.5.11 (02. July, 2022)

Expand Down
2 changes: 2 additions & 0 deletions axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ form = ["serde_urlencoded"]
http1 = ["hyper/http1"]
http2 = ["hyper/http2"]
json = ["serde_json"]
macros = ["axum-macros"]
matched-path = []
multipart = ["multer"]
original-uri = []
Expand Down Expand Up @@ -47,6 +48,7 @@ tower-layer = "0.3"
tower-service = "0.3"

# optional dependencies
axum-macros = { path = "../axum-macros", version = "0.2.3", optional = true }
base64 = { version = "0.13", optional = true }
headers = { version = "0.3.7", optional = true }
multer = { version = "2.0.0", optional = true }
Expand Down
4 changes: 4 additions & 0 deletions axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@
//! `http1` | Enables hyper's `http1` feature | Yes
//! `http2` | Enables hyper's `http2` feature | No
//! `json` | Enables the [`Json`] type and some similar convenience functionality | Yes
//! `macros` | Enables optional utility macros | No
//! `matched-path` | Enables capturing of every request's router path and the [`MatchedPath`] extractor | Yes
//! `multipart` | Enables parsing `multipart/form-data` requests with [`Multipart`] | No
//! `original-uri` | Enables capturing of every request's original URI and the [`OriginalUri`] extractor | Yes
Expand Down Expand Up @@ -442,3 +443,6 @@ pub use self::form::Form;

#[doc(inline)]
pub use axum_core::{BoxError, Error};

#[cfg(feature = "macros")]
pub use axum_macros::debug_handler;

0 comments on commit a4a298c

Please sign in to comment.