actix_web_location/
lib.rs1#![warn(missing_docs)]
4#![forbid(unsafe_code)]
5
6#[cfg(any(
10 all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
11 all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
12))]
13mod domain;
14#[cfg(any(
15 all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
16 all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
17))]
18mod error;
19#[cfg(any(
20 all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
21 all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
22))]
23mod extractors;
24#[cfg(any(
25 all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
26 all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
27))]
28pub mod providers;
29
30#[cfg(any(
31 all(feature = "actix-web-v3", not(feature = "actix-web-v4")),
32 all(not(feature = "actix-web-v3"), feature = "actix-web-v4")
33))]
34pub use crate::{domain::Location, error::Error, extractors::LocationConfig, providers::Provider};
35
36#[cfg(all(feature = "actix-web-v3", feature = "actix-web-v4"))]
46mod warning {
47 #![allow(dead_code)]
48
49 #[deprecated(
50 note = "Only one of actix-web-v3 and actix-web-v4 can be used at once. This entire crate will be disabled."
51 )]
52 fn actix_web_location_must_specify_one_version_of_actix_web() {}
53 fn trigger_warning() {
54 actix_web_location_must_specify_one_version_of_actix_web()
55 }
56}
57
58#[cfg(not(any(feature = "actix-web-v3", feature = "actix-web-v4")))]
60mod warning {
61 #![allow(dead_code)]
62
63 #[deprecated(note = "Exactly of actix-web-v3 or actix-web-v4 must be specified")]
64 fn actix_web_location_must_specify_one_version_of_actix_web() {}
65 fn trigger_warning() {
66 actix_web_location_must_specify_one_version_of_actix_web()
67 }
68}