Use Unix sockets on Windows if available
AF_UNIX has been available on Windows since 2017 (https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/).
Can we use Unix sockets instead of named pipes on Windows?
The Rust standard library seems to also be looking at supporting AF_UNIX , is that correct?
https://github.com/rust-lang/rust/issues/56533
As Ud-sockets have been outsourced to the standard library, this is now blocked on upstream.
Not sure what the timeline of that upstream implementation is like, but FYI there seems to be support via this crate.
guys!! i create a pr to add win af unix to std. hope you test it! https://github.com/rust-lang/rust/pull/147335