Re-export debug_handler from axum (#1144)

* Re-export `debug_handler` from axum

Fixes #1143

* also axum-extra
This commit is contained in:
David Pedersen
2022-07-04 09:10:52 +00:00
committed by GitHub
parent 2e80ebd18d
commit 2966407dc1
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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
+3
View File
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
if you want the old behavior ([#1119])
- **added** Implement `TryFrom<http:: Method>` for `MethodFilter` and use new `NoMatchingMethodFilter` error in case of failure ([#1130])
- **added:** Support running extractors from `middleware::from_fn` functions ([#1088])
- **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`
[#1077]: https://github.com/tokio-rs/axum/pull/1077
[#1088]: https://github.com/tokio-rs/axum/pull/1088
+2
View File
@@ -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 = []
@@ -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 }
+4
View File
@@ -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
@@ -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;