unix_socket/
lib.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! This crate provides [`UnixStream`] and [`UnixListener`] implementations for
5//! Windows, and re-exposes the `std` types for UNIX.
6//!
7//! This can go away once the `std` types are available on Windows.
8//!
9//! <https://github.com/rust-lang/rust/issues/56533>
10
11#![cfg_attr(not(windows), forbid(unsafe_code))]
12
13mod windows;
14
15#[cfg(windows)]
16pub use windows::*;
17
18#[cfg(unix)]
19pub use std::os::unix::net::UnixListener;
20#[cfg(unix)]
21pub use std::os::unix::net::UnixStream;