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-07-08 01:25:45 +00:00
|
|
|
pub use once_cell;
|
2023-04-03 18:20:38 +00:00
|
|
|
|
2023-07-15 00:23:12 +00:00
|
|
|
mod html_storage;
|
2023-04-28 22:59:01 +00:00
|
|
|
|
2023-06-24 01:23:03 +00:00
|
|
|
#[cfg(feature = "router")]
|
|
|
|
pub mod router;
|
|
|
|
|
2023-07-08 01:25:45 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-03-30 15:34:13 +00:00
|
|
|
mod adapters;
|
2023-07-08 01:25:45 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
|
|
|
pub use adapters::*;
|
2023-07-17 23:48:54 +00:00
|
|
|
mod hooks;
|
2023-04-02 22:45:28 +00:00
|
|
|
#[cfg(all(debug_assertions, feature = "hot-reload", feature = "ssr"))]
|
|
|
|
mod hot_reload;
|
2023-06-24 01:23:03 +00:00
|
|
|
pub mod launch;
|
2023-03-30 20:58:03 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-07-08 01:25:45 +00:00
|
|
|
mod layer;
|
|
|
|
#[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-07-07 00:54:05 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
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-07-17 23:48:54 +00:00
|
|
|
use crate::hooks;
|
2023-04-28 22:59:01 +00:00
|
|
|
#[cfg(not(feature = "ssr"))]
|
2023-07-15 00:23:12 +00:00
|
|
|
pub use crate::html_storage::deserialize::get_root_props_from_document;
|
2023-07-28 19:58:34 +00:00
|
|
|
pub use crate::launch::LaunchBuilder;
|
2023-06-29 01:48:42 +00:00
|
|
|
#[cfg(all(feature = "ssr", feature = "router"))]
|
|
|
|
pub use crate::render::pre_cache_static_routes_with_props;
|
2023-03-30 20:58:03 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-04-03 22:39:09 +00:00
|
|
|
pub use crate::render::SSRState;
|
2023-07-28 19:58:34 +00:00
|
|
|
#[cfg(feature = "router")]
|
|
|
|
pub use crate::router::FullstackRouterConfig;
|
2023-04-03 22:39:09 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
2023-05-02 15:15:34 +00:00
|
|
|
pub use crate::serve_config::{ServeConfig, ServeConfigBuilder};
|
2023-07-07 18:03:59 +00:00
|
|
|
#[cfg(all(feature = "ssr", feature = "axum"))]
|
2023-07-07 00:54:05 +00:00
|
|
|
pub use crate::server_context::Axum;
|
|
|
|
#[cfg(feature = "ssr")]
|
|
|
|
pub use crate::server_context::{
|
2023-07-12 22:20:44 +00:00
|
|
|
extract, server_context, DioxusServerContext, FromServerContext, ProvideServerContext,
|
2023-07-07 00:54:05 +00:00
|
|
|
};
|
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-07-08 01:25:45 +00:00
|
|
|
pub use crate::server_fn::{ServerFnMiddleware, ServerFnTraitObj, ServerFunction};
|
2023-04-03 22:39:09 +00:00
|
|
|
pub use dioxus_server_macro::*;
|
2023-06-22 23:51:48 +00:00
|
|
|
#[cfg(feature = "ssr")]
|
|
|
|
pub use dioxus_ssr::incremental::IncrementalRendererConfig;
|
2023-03-30 15:34:13 +00:00
|
|
|
pub use server_fn::{self, ServerFn as _, ServerFnError};
|
2023-07-15 00:23:12 +00:00
|
|
|
|
2023-07-17 23:48:54 +00:00
|
|
|
pub use hooks::{server_cached::server_cached, server_future::use_server_future};
|
2023-03-28 18:35:17 +00:00
|
|
|
}
|