#![warn(missing_docs)]
#![forbid(unsafe_code)]
#[cfg(any(
all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
))]
mod domain;
#[cfg(any(
all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
))]
mod error;
#[cfg(any(
all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
))]
mod extractors;
#[cfg(any(
all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
))]
pub mod providers;
#[cfg(any(
all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
))]
pub use crate::{domain::Location, error::Error, extractors::LocationConfig, providers::Provider};
#[cfg(all(feature = "actix-web-v3", feature = "actix-web-v4"))]
mod warning {
#![allow(dead_code)]
#[deprecated(
note = "Only one of actix-web-v3 and actix-web-v4 can be used at once. This entire crate will be disabled."
)]
fn actix_web_location_must_specify_one_version_of_actix_web() {}
fn trigger_warning() {
actix_web_location_must_specify_one_version_of_actix_web()
}
}
#[cfg(not(any(feature = "actix-web-v3", feature = "actix-web-v4")))]
mod warning {
#![allow(dead_code)]
#[deprecated(note = "Exactly of actix-web-v3 or actix-web-v4 must be specified")]
fn actix_web_location_must_specify_one_version_of_actix_web() {}
fn trigger_warning() {
actix_web_location_must_specify_one_version_of_actix_web()
}
}