rksm / hot-lib-reloader-rs

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

Fix macos m1 #4

Closed rksm closed 2 years ago

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