Skip to main content

anycms_spa/
lib.rs

1pub mod core;
2
3#[cfg(all(feature = "actix", feature = "axum"))]
4compile_error!("Features `actix` and `axum` are mutually exclusive, enable only one.");
5
6#[cfg(all(feature = "actix", feature = "salvo"))]
7compile_error!("Features `actix` and `salvo` are mutually exclusive, enable only one.");
8
9#[cfg(all(feature = "axum", feature = "salvo"))]
10compile_error!("Features `axum` and `salvo` are mutually exclusive, enable only one.");
11
12#[cfg(all(feature = "actix", not(feature = "axum"), not(feature = "salvo")))]
13pub mod actix;
14
15#[cfg(all(feature = "axum", not(feature = "actix"), not(feature = "salvo")))]
16pub mod axum;
17
18#[cfg(all(feature = "salvo", not(feature = "actix"), not(feature = "axum")))]
19pub mod salvo;
20
21// 通用错误类型
22pub use core::{SpaError, SpaConfig};
23/// Internal dependencies referenced by the `spa!` macro's expansion. The
24/// macro body must not rely on `paste` being visible in the *invoking* crate
25/// (serde's `__private` pattern), so it is re-exported here and the macro
26/// refers to it as `$crate::__macro_dependencies::paste`.
27#[doc(hidden)]
28pub mod __macro_dependencies {
29    pub use paste;
30}