2023-03-30 15:34:13 +00:00
|
|
|
#[allow(unused)]
|
|
|
|
use dioxus_core::prelude::*;
|
2023-03-28 18:35:17 +00:00
|
|
|
|
2023-03-30 15:34:13 +00:00
|
|
|
mod adapters;
|
2023-04-02 22:45:28 +00:00
|
|
|
#[cfg(all(debug_assertions, feature = "hot-reload", feature = "ssr"))]
|
|
|
|
mod hot_reload;
|
2023-03-30 20:58:03 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-03-31 20:33:44 +00:00
|
|
|
pub mod render;
|
|
|
|
#[cfg(feature = "ssr")]
|
2023-03-30 16:03:07 +00:00
|
|
|
mod serve;
|
2023-04-01 22:00:12 +00:00
|
|
|
mod server_context;
|
2023-03-30 15:34:13 +00:00
|
|
|
mod server_fn;
|
|
|
|
|
|
|
|
pub mod prelude {
|
|
|
|
#[cfg(feature = "axum")]
|
|
|
|
pub use crate::adapters::axum_adapter::*;
|
2023-03-31 00:42:46 +00:00
|
|
|
#[cfg(feature = "salvo")]
|
|
|
|
pub use crate::adapters::salvo_adapter::*;
|
2023-03-31 14:40:58 +00:00
|
|
|
#[cfg(feature = "warp")]
|
|
|
|
pub use crate::adapters::warp_adapter::*;
|
2023-03-30 20:58:03 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-03-31 20:33:44 +00:00
|
|
|
pub use crate::render::*;
|
|
|
|
#[cfg(feature = "ssr")]
|
2023-04-01 22:00:12 +00:00
|
|
|
pub use crate::serve::{ServeConfig, ServeConfigBuilder};
|
|
|
|
pub use crate::server_context::DioxusServerContext;
|
|
|
|
pub use crate::server_fn::ServerFn;
|
|
|
|
#[cfg(feature = "ssr")]
|
|
|
|
pub use crate::server_fn::ServerFnTraitObj;
|
2023-03-30 15:34:13 +00:00
|
|
|
pub use server_fn::{self, ServerFn as _, ServerFnError};
|
|
|
|
pub use server_macro::*;
|
2023-03-28 18:35:17 +00:00
|
|
|
}
|