rksm / hot-lib-reloader-rs

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

Fix macos m1 #4

Closed rksm closed 1 year ago

rksm commented 1 year ago

This reverts back to the strategy of copying the actually loaded lib file to a filename unknown to the runtime.

So if the original lib is target/debug/liblib.dylib, the (re-)loaded lib files are target/debug/liblib-hot.0.dylib, target/debug/liblib-hot.1.dylib, ...

This fixes reloads on macOS arm64 / M1