rksm / hot-lib-reloader-rs

Reload Rust code without app restarts. For faster feedback cycles.
MIT License
577 stars 21 forks source link

Register for lib change events #8

Closed rksm closed 1 year ago

rksm commented 1 year ago

Added support for getting lib reload events. Inside a hot_module, the following creates a function that can be used to subscribe:

#[lib_change_subscription]
pub fn subscribe() -> std::sync::mpsc::Receiver<hot_lib_reloader::ChangedEvent> {}