When using this plugin in Vite, modifying rust files does not trigger a reload. Here is a minimal repro: https://github.com/darichey/rollup-plugin-rust-watch-issue-demo
Using vite --debug, I can see this in the logs when modifying lib.rs:
vite:hmr [file change] src/lib.rs +5s
vite:hmr [no modules matched] src/lib.rs +0ms
It's possible that this is a Vite issue. It seems related to vitejs/vite#7024.