rksm / hot-lib-reloader-rs

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

Register for lib change events #8

Closed rksm closed 2 years ago

rksm commented 2 years 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> {}