Skip to main content

whisker_dev_runtime/
lib.rs

1//! Development-only runtime extensions for Whisker.
2//!
3//! Compiled into Whisker apps only when the umbrella crate is built
4//! with `--features hot-reload`. Release builds end up with an empty
5//! crate (no tokio / no WebSocket / no subsecond).
6
7#[cfg(feature = "hot-reload")]
8pub mod hot_reload;
9
10#[cfg(feature = "hot-reload")]
11pub mod log_capture;
12
13#[cfg(feature = "hot-reload")]
14pub use hot_reload::{
15    NativeCodeUpdate, NativeHotReload, NativeHotReloadRegistration, register_native_runtime,
16    start_receiver,
17};
18
19#[cfg(feature = "hot-reload")]
20pub use log_capture::start_log_capture;