paperclip_core/
lib.rs

1#![cfg_attr(feature = "nightly", feature(specialization))]
2//! Core structs and traits for paperclip.
3
4#[cfg(feature = "actix2")]
5extern crate actix_web2 as actix_web;
6#[cfg(feature = "actix3")]
7extern crate actix_web3 as actix_web;
8#[cfg(feature = "actix4")]
9extern crate actix_web4 as actix_web;
10#[cfg_attr(feature = "v2", macro_use)]
11extern crate serde;
12
13mod error;
14pub mod im;
15pub mod util;
16#[cfg(feature = "v2")]
17pub mod v2;
18// #[cfg(feature = "v3")]
19pub mod v3;
20
21pub use self::error::ValidationError;
22
23#[cfg(all(feature = "actix2", feature = "actix3"))]
24compile_error!("feature \"actix2\" and feature \"actix3\" cannot be enabled at the same time");
25
26#[cfg(all(feature = "actix3", feature = "actix4"))]
27compile_error!("feature \"actix3\" and feature \"actix4\" cannot be enabled at the same time");
28
29#[cfg(all(feature = "actix2", feature = "actix4"))]
30compile_error!("feature \"actix2\" and feature \"actix4\" cannot be enabled at the same time");