2023-04-03 18:58:54 +00:00
|
|
|
#![doc = include_str!("../README.md")]
|
|
|
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
|
|
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
|
|
|
#![deny(missing_docs)]
|
2023-03-28 18:35:17 +00:00
|
|
|
|
2023-04-03 18:20:38 +00:00
|
|
|
pub use adapters::*;
|
|
|
|
|
2023-04-28 22:59:01 +00:00
|
|
|
mod props_html;
|
|
|
|
|
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-06-22 19:51:10 +00:00
|
|
|
#[cfg(feature = "router")]
|
|
|
|
mod incremental;
|
2023-03-30 20:58:03 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-04-03 13:09:22 +00:00
|
|
|
mod render;
|
2023-03-31 20:33:44 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-04-03 13:09:22 +00:00
|
|
|
mod serve_config;
|
2023-04-01 22:00:12 +00:00
|
|
|
mod server_context;
|
2023-03-30 15:34:13 +00:00
|
|
|
mod server_fn;
|
|
|
|
|
2023-05-02 15:15:34 +00:00
|
|
|
/// A prelude of commonly used items in dioxus-fullstack.
|
2023-03-30 15:34:13 +00:00
|
|
|
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-04-28 22:59:01 +00:00
|
|
|
#[cfg(not(feature = "ssr"))]
|
2023-04-28 23:01:21 +00:00
|
|
|
pub use crate::props_html::deserialize_props::get_root_props_from_document;
|
2023-03-30 20:58:03 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-04-03 22:39:09 +00:00
|
|
|
pub use crate::render::SSRState;
|
|
|
|
#[cfg(feature = "ssr")]
|
2023-05-02 15:15:34 +00:00
|
|
|
pub use crate::serve_config::{ServeConfig, ServeConfigBuilder};
|
2023-04-29 22:04:54 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-05-02 15:15:34 +00:00
|
|
|
pub use crate::server_context::RequestParts;
|
|
|
|
pub use crate::server_context::{DioxusServerContext, HasServerContext};
|
2023-06-19 21:08:46 +00:00
|
|
|
pub use crate::server_fn::DioxusServerFn;
|
2023-04-01 22:00:12 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-04-28 01:25:16 +00:00
|
|
|
pub use crate::server_fn::{ServerFnTraitObj, ServerFunction};
|
2023-04-03 22:39:09 +00:00
|
|
|
pub use dioxus_server_macro::*;
|
2023-03-30 15:34:13 +00:00
|
|
|
pub use server_fn::{self, ServerFn as _, ServerFnError};
|
2023-03-28 18:35:17 +00:00
|
|
|
}
|