diff --git a/packages/perseus/src/lib.rs b/packages/perseus/src/lib.rs index c8f3fbe153..6c0089f952 100644 --- a/packages/perseus/src/lib.rs +++ b/packages/perseus/src/lib.rs @@ -89,12 +89,6 @@ pub type Request = (); #[cfg(feature = "macros")] pub use perseus_macro::*; -// Browser-side only -#[cfg(any(client, doc))] -pub use crate::utils::checkpoint; -#[cfg(all(feature = "client-helpers", any(client, doc)))] -pub use client::{run_client, ClientReturn}; - /// Internal utilities for lower-level work. #[cfg(engine)] pub mod internal { @@ -161,4 +155,7 @@ pub mod prelude { #[cfg(feature = "macros")] pub use perseus_macro::*; pub use sycamore_futures::spawn_local_scoped; + + #[cfg(any(client, doc))] + pub use crate::utils::checkpoint; } diff --git a/packages/perseus/src/utils/checkpoint.rs b/packages/perseus/src/utils/checkpoint.rs index c90ecb6f4a..a4b2a444ba 100644 --- a/packages/perseus/src/utils/checkpoint.rs +++ b/packages/perseus/src/utils/checkpoint.rs @@ -17,11 +17,11 @@ use crate::reactor::WindowVariable; /// Note: this is not just for internal usage, it's highly recommended that you /// use this for your own checkpoints as well! Just make sure your tests don't /// conflict with any internal Perseus checkpoint names (preferably prefix yours -/// with `custom-` or the like, as Perseus' checkpoints may change at any time, +/// with `custom_` or the like, as Perseus' checkpoints may change at any time, /// but won't ever use that namespace). /// -/// WARNING: your checkpoint names must not include hyphens! This will result in -/// a `panic!`. +/// **Warning:** your checkpoint names must not include hyphens! This will +/// result in a `panic!`. pub fn checkpoint(name: &str) { if name.contains('-') { panic!("checkpoint must not contain hyphens, use underscores instead (hyphens are used as an internal delimiter)");