Skip to main content

leptos_ntex_unofficial/
lib.rs

1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3#![doc = include_str!("../README.md")]
4
5pub mod config;
6pub mod extract;
7pub mod files;
8pub mod leptos_routes;
9pub mod render;
10pub mod request;
11pub mod response;
12pub mod routes;
13pub mod server_fn;
14pub mod static_routes;
15
16pub use config::{DEFAULT_PAYLOAD_LIMIT, DEFAULT_WS_CHANNEL_BUFFER, LeptosServerFnConfig};
17pub use extract::{extract, extract_with_err};
18pub use files::{
19    file_and_error_handler, file_and_error_handler_with_context, site_pkg_dir_service,
20};
21pub use leptos_routes::{LeptosRoutes, register_leptos_routes};
22pub use render::{
23    handle_response_inner, render_app_async, render_app_async_with_context, render_app_to_stream,
24    render_app_to_stream_in_order, render_app_to_stream_in_order_with_context,
25    render_app_to_stream_with_context, render_app_to_stream_with_context_and_replace_blocks,
26};
27pub use request::Request;
28pub use response::{PinnedHtmlStream, ResponseOptions, ResponseParts, redirect};
29pub use routes::{
30    NtexRouteListing, generate_route_list, generate_route_list_with_exclusions,
31    generate_route_list_with_exclusions_and_ssg,
32    generate_route_list_with_exclusions_and_ssg_and_context, generate_route_list_with_ssg,
33    try_init_executor,
34};
35pub use server_fn::{
36    NtexExecutor, NtexRequest, NtexServerFnBackend, NtexServerResponse, generate_request_and_parts,
37    get_server_fn_service, handle_server_fns, handle_server_fns_with_context, register_explicit,
38    server_fn_paths,
39};
40pub use static_routes::StaticRouteGenerator;
41
42#[cfg(test)]
43mod tests;