This one should be pretty similar to spirit-tokio TCP/UDP helpers. It would probably make sense to use spirit-tokio as dependency and see if anything more can be shared from the code.
Anyway, it should probably be a separate subcrate (as it brings another dependency that won't be available on eg. windows). Also, some thinking on what to configure would be nice ‒ the path to bind to for sure, but how about FS permissions? Should it be configured by the program or the user?
This one should be pretty similar to spirit-tokio TCP/UDP helpers. It would probably make sense to use spirit-tokio as dependency and see if anything more can be shared from the code.
Anyway, it should probably be a separate subcrate (as it brings another dependency that won't be available on eg. windows). Also, some thinking on what to configure would be nice ‒ the path to bind to for sure, but how about FS permissions? Should it be configured by the program or the user?