mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-30 08:00:21 +00:00
66 lines
2.1 KiB
Rust
66 lines
2.1 KiB
Rust
#![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)]
|
|
|
|
pub use once_cell;
|
|
|
|
mod html_storage;
|
|
|
|
#[cfg(feature = "router")]
|
|
pub mod router;
|
|
|
|
#[cfg(feature = "ssr")]
|
|
mod adapters;
|
|
#[cfg(feature = "ssr")]
|
|
pub use adapters::*;
|
|
mod hooks;
|
|
#[cfg(all(debug_assertions, feature = "hot-reload", feature = "ssr"))]
|
|
mod hot_reload;
|
|
pub mod launch;
|
|
#[cfg(feature = "ssr")]
|
|
mod layer;
|
|
#[cfg(feature = "ssr")]
|
|
mod render;
|
|
#[cfg(feature = "ssr")]
|
|
mod serve_config;
|
|
#[cfg(feature = "ssr")]
|
|
mod server_context;
|
|
mod server_fn;
|
|
|
|
/// A prelude of commonly used items in dioxus-fullstack.
|
|
pub mod prelude {
|
|
#[cfg(feature = "axum")]
|
|
pub use crate::adapters::axum_adapter::*;
|
|
#[cfg(feature = "salvo")]
|
|
pub use crate::adapters::salvo_adapter::*;
|
|
#[cfg(feature = "warp")]
|
|
pub use crate::adapters::warp_adapter::*;
|
|
use crate::hooks;
|
|
#[cfg(not(feature = "ssr"))]
|
|
pub use crate::html_storage::deserialize::get_root_props_from_document;
|
|
pub use crate::launch::LaunchBuilder;
|
|
#[cfg(all(feature = "ssr", feature = "router"))]
|
|
pub use crate::render::pre_cache_static_routes_with_props;
|
|
#[cfg(feature = "ssr")]
|
|
pub use crate::render::SSRState;
|
|
#[cfg(feature = "router")]
|
|
pub use crate::router::FullstackRouterConfig;
|
|
#[cfg(feature = "ssr")]
|
|
pub use crate::serve_config::{ServeConfig, ServeConfigBuilder};
|
|
#[cfg(all(feature = "ssr", feature = "axum"))]
|
|
pub use crate::server_context::Axum;
|
|
#[cfg(feature = "ssr")]
|
|
pub use crate::server_context::{
|
|
extract, server_context, DioxusServerContext, FromServerContext, ProvideServerContext,
|
|
};
|
|
pub use crate::server_fn::DioxusServerFn;
|
|
#[cfg(feature = "ssr")]
|
|
pub use crate::server_fn::{ServerFnMiddleware, ServerFnTraitObj, ServerFunction};
|
|
pub use dioxus_server_macro::*;
|
|
#[cfg(feature = "ssr")]
|
|
pub use dioxus_ssr::incremental::IncrementalRendererConfig;
|
|
pub use server_fn::{self, ServerFn as _, ServerFnError};
|
|
|
|
pub use hooks::{server_cached::server_cached, server_future::use_server_future};
|
|
}
|