mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
axum-extra: Make axum optional dependency (#3485)
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
//! Additional extractors.
|
||||
|
||||
mod cached;
|
||||
mod host;
|
||||
mod optional_path;
|
||||
pub mod rejection;
|
||||
|
||||
#[cfg(feature = "optional-path")]
|
||||
mod optional_path;
|
||||
|
||||
#[cfg(feature = "cached")]
|
||||
mod cached;
|
||||
|
||||
#[cfg(feature = "with-rejection")]
|
||||
mod with_rejection;
|
||||
|
||||
#[cfg(feature = "form")]
|
||||
@@ -25,8 +31,16 @@ pub mod multipart;
|
||||
mod scheme;
|
||||
|
||||
#[allow(deprecated)]
|
||||
#[cfg(feature = "optional-path")]
|
||||
pub use self::optional_path::OptionalPath;
|
||||
pub use self::{cached::Cached, host::Host, with_rejection::WithRejection};
|
||||
|
||||
pub use self::host::Host;
|
||||
|
||||
#[cfg(feature = "cached")]
|
||||
pub use self::cached::Cached;
|
||||
|
||||
#[cfg(feature = "with-rejection")]
|
||||
pub use self::with_rejection::WithRejection;
|
||||
|
||||
#[cfg(feature = "cookie")]
|
||||
pub use self::cookie::CookieJar;
|
||||
|
||||
Reference in New Issue
Block a user