Fix server function warning with default features (#4453)

* fix server function warning with default features

* document and hide mock client

* fix clippy

* more clippy fixes

* fix formatting
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-07-22 11:48:47 -07:00
1 parent 86086477d0
commit 18fe6de9a0
7 files changed
+181 -6

No files matched your search

+9 -2
View File
@@ -8,6 +8,8 @@
mod web;
mod error;
#[doc(hidden)]
pub mod mock_client;
#[cfg(all(feature = "web", feature = "document"))]
pub use web::FullstackWebDocument;
@@ -15,13 +17,18 @@ pub use web::FullstackWebDocument;
pub use dioxus_fullstack_hooks::history::FullstackHistory;
pub use crate::error::{ServerFnError, ServerFnResult};
#[doc(inline)]
pub use dioxus_fullstack_hooks::*;
#[cfg(feature = "server")]
#[doc(inline)]
pub use dioxus_server::*;
#[doc(inline)]
pub use dioxus_server_macro::*;
pub use server_fn::ServerFn as _;
#[doc(inline)]
pub use server_fn::{
self, client,
client::{get_server_url, set_server_url},
codec, server, BoxedStream, ContentType, Decodes, Encodes, Format, FormatType, ServerFn as _,
ServerFn, Websocket,
codec, server, BoxedStream, ContentType, Decodes, Encodes, Format, FormatType, ServerFn,
Websocket,
};