rs-git-fsmonitor
rs-git-fsmonitor copied to clipboard
Use watchman Rust client instead of subprocess
There is a newly added watchman Rust client implementation in the watchman repository at: https://github.com/facebook/watchman/tree/master/rust/watchman_client (on crates.io)
It's probably better to use that client instead of using Command::new
. :D
Thanks for the recommendation! I took a look at this and I will work on converting to use the client, though that means more refactoring to go async
.
FWIW I added an implementation using the watchman Rust crate at https://github.com/facebook/watchman/blob/master/rust/watchman_client/examples/since.rs
It might be useful.
Awesome, very helpful reference. Also @wwwjfy is adding support for fsmonitor hook v2 and clock spec in https://github.com/jgavris/rs-git-fsmonitor/pull/20.
Also saw this, is there still work to be done here?
I would welcome contributions for this if anyone wants to do the work. Personally the tool works well for my purposes right now and I'm not highly motivated to refactor it. Perhaps when I find a weekend where I want to dive into more modern async Rust I'll use this as my first project.