diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-20 01:11:44 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-20 01:11:44 +0800 |
| commit | 779d7f6b3b5a22406c61d94efc45ad4422e50e0d (patch) | |
| tree | 9a346a0aa1d8323cc657ff86cb59a57e9a01d959 /mingling | |
| parent | 1f583f625a7d541dc7d47a8136b31d29a5ed5441 (diff) | |
feat(extensions): add routeify extension macro for error routing
Diffstat (limited to 'mingling')
| -rw-r--r-- | mingling/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index f4bc9dc..5cd53db 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -106,6 +106,10 @@ pub mod macros { /// `route! { /* ... */ }` - Used to generate a route that either returns a successful result or early returns an error. #[cfg(feature = "extra_macros")] pub use mingling_macros::route; + /// `#[routeify]` - An extension attribute macro that transforms `expr?` into `route!(expr)`. + /// Can be used standalone or as a chain/renderer extension: `#[chain(routeify, ...)]`. + #[cfg(feature = "extra_macros")] + pub use mingling_macros::routeify; /// `suggest! { "hello", "bye" }` - Used to generate suggestions #[cfg(feature = "comp")] pub use mingling_macros::suggest; |
