Skip to content

Unix domain sockets on Windows #56533

Open
@haraldh

Description

@haraldh
Contributor

Seeing https://github.com/Azure/mio-uds-windows .. Is there any reason why UDS are not implemented in the standard library for Windows?

Activity

retep998

retep998 commented on Dec 5, 2018

@retep998
Member

Because they were implemented in a rather recent version of Windows 10.

haraldh

haraldh commented on Dec 10, 2018

@haraldh
ContributorAuthor

meanwhile I created a crate for it https://crates.io/crates/uds_windows

added
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
on Jan 27, 2019
steffengy

steffengy commented on Jul 4, 2019

@steffengy
Contributor

Is the argument here
"only a recent version of win10 supports it, so it doesn't belong in STD"
or
"only a recent version of windows 10 supports it, so nobody has added support yet?"

retep998

retep998 commented on Jul 5, 2019

@retep998
Member

Definitely the former because std supports Windows 7 as a tier 1 platform. Considering you can use a third party crate for unix domain sockets on windows as is, there is very little reason to put them in std.

yoshuawuyts

yoshuawuyts commented on Sep 2, 2020

@yoshuawuyts
Member

I'd love to see this feature make it's way eventually. Cross-linking a conversation on internals for discoverability.

added
A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`
on Oct 4, 2020
rylev

rylev commented on Nov 24, 2020

@rylev
Member

As an FYI: I am working on a pre-RFC for min_target_api_version which allows for conditional compilation based on the minimum support API version for the target platform. This could address the issue that this would not be supported on older versions of Windows. With this mechanism, Unix sockets would only be available when compiling for a min_target_api_version that supports Unix sockets. Though this would likely only benefit those who build their own version of the standard library.

20 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`C-feature-requestCategory: A feature request, i.e: not implemented / a PR.O-windowsOperating system: WindowsT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @faern@haraldh@retep998@steffengy@rylev

        Issue actions

          Unix domain sockets on Windows · Issue #56533 · rust-lang/rust