The lock is a cargo thing, so perhaps this could be something to raise with them as well.
Waiting before running could be done two ways:
- As a
sleep 0.1, or
- As an option.
The sleep way requires positioned flag parsing, which wasn't possible with Clap when I built cargo watch. It might be possible now, but I don't think so. In that case, that's a feature that needs to be requested of Clap.
The option way needs to be done and exposed on Watchexec first before it can be used and exposed here.