whisker-dev-runtime 0.11.1

Development-only runtime: WebSocket client + hot-reload patch receiver.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Development-only runtime extensions for Whisker.
//!
//! Compiled into Whisker apps only when the umbrella crate is built
//! with `--features hot-reload`. Release builds end up with an empty
//! crate (no tokio / no WebSocket / no subsecond).

#[cfg(feature = "hot-reload")]
pub mod hot_reload;

#[cfg(feature = "hot-reload")]
pub mod log_capture;

#[cfg(feature = "hot-reload")]
pub use hot_reload::{devlog, start_receiver, take_pending_patch};

#[cfg(feature = "hot-reload")]
pub use log_capture::start_log_capture;