unix_socket2 0.5.4

Unix domain socket bindings, with bug fixes and enhancements.
Documentation
Build #1506448 2024-11-07T19:43:07.610870+00:00
# rustc version
rustc 1.84.0-nightly (854980293 2024-11-06)# docs.rs version
docsrs 0.6.0 (36c721fb 2024-11-06)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/unix_socket2-0.5.4/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/unix_socket2-0.5.4/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241106-1.84.0-nightly-854980293\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/i686-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "i686-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] d3ddcf6c9f3734fd81292d73a8470325b358d6011db5d2d56bb0c5f836acdeb2
[INFO] running `Command { std: "docker" "start" "-a" "d3ddcf6c9f3734fd81292d73a8470325b358d6011db5d2d56bb0c5f836acdeb2", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting unix_socket2 v0.5.4 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0433]: failed to resolve: could not find `unix` in `os`
[INFO] [stderr]   --> src/lib.rs:16:14
[INFO] [stderr]    |
[INFO] [stderr] 16 | use std::os::unix::ffi::OsStrExt;
[INFO] [stderr]    |              ^^^^ could not find `unix` in `os`
[INFO] [stderr]    |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:84:1
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `unix` in `os`
[INFO] [stderr]   --> src/lib.rs:17:14
[INFO] [stderr]    |
[INFO] [stderr] 17 | use std::os::unix::io::{RawFd, AsRawFd, FromRawFd, IntoRawFd};
[INFO] [stderr]    |              ^^^^ could not find `unix` in `os`
[INFO] [stderr]    |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/8549802939cd01111c46e34a7b67cb1933977af9\library\std\src\os\mod.rs:84:1
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `sockaddr_un` in crate `libc`
[INFO] [stderr]    --> src/lib.rs:170:69
[INFO] [stderr]     |
[INFO] [stderr] 170 |   unsafe fn sockaddr_un<P: AsRef<Path>>(path: P) -> io::Result<(libc::sockaddr_un, libc::socklen_t)> {
[INFO] [stderr]     |                                                                       ^^^^^^^^^^^ help: a struct with a similar name exists: `sockaddr`
[INFO] [stderr]     |
[INFO] [stderr]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.162/src/windows/mod.rs:55:1
[INFO] [stderr]     |
[INFO] [stderr] 55  | / s! {
[INFO] [stderr] 56  | |     // note this is the struct called stat64 in Windows. Not stat, nor stati64.
[INFO] [stderr] 57  | |     pub struct stat {
[INFO] [stderr] 58  | |         pub st_dev: dev_t,
[INFO] [stderr] ...   |
[INFO] [stderr] 102 | |     }
[INFO] [stderr] 103 | | }
[INFO] [stderr]     | |_- similarly named struct `sockaddr` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `socklen_t` in crate `libc`
[INFO] [stderr]    --> src/lib.rs:170:88
[INFO] [stderr]     |
[INFO] [stderr] 170 | unsafe fn sockaddr_un<P: AsRef<Path>>(path: P) -> io::Result<(libc::sockaddr_un, libc::socklen_t)> {
[INFO] [stderr]     |                                                                                        ^^^^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `sockaddr_un` in crate `libc`
[INFO] [stderr]    --> src/lib.rs:212:17
[INFO] [stderr]     |
[INFO] [stderr] 212 |       addr: libc::sockaddr_un,
[INFO] [stderr]     |                   ^^^^^^^^^^^ help: a struct with a similar name exists: `sockaddr`
[INFO] [stderr]     |
[INFO] [stderr]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.162/src/windows/mod.rs:55:1
[INFO] [stderr]     |
[INFO] [stderr] 55  | / s! {
[INFO] [stderr] 56  | |     // note this is the struct called stat64 in Windows. Not stat, nor stati64.
[INFO] [stderr] 57  | |     pub struct stat {
[INFO] [stderr] 58  | |         pub st_dev: dev_t,
[INFO] [stderr] ...   |
[INFO] [stderr] 102 | |     }
[INFO] [stderr] 103 | | }
[INFO] [stderr]     | |_- similarly named struct `sockaddr` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `socklen_t` in crate `libc`
[INFO] [stderr]    --> src/lib.rs:213:16
[INFO] [stderr]     |
[INFO] [stderr] 213 |     len: libc::socklen_t,
[INFO] [stderr]     |                ^^^^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `socklen_t` in crate `libc`
[INFO] [stderr]    --> src/lib.rs:218:57
[INFO] [stderr]     |
[INFO] [stderr] 218 |         where F: FnOnce(*mut libc::sockaddr, *mut libc::socklen_t) -> libc::c_int
[INFO] [stderr]     |                                                         ^^^^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not document `unix_socket2`
[INFO] running `Command { std: "docker" "inspect" "d3ddcf6c9f3734fd81292d73a8470325b358d6011db5d2d56bb0c5f836acdeb2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d3ddcf6c9f3734fd81292d73a8470325b358d6011db5d2d56bb0c5f836acdeb2", kill_on_drop: false }`
[INFO] [stdout] d3ddcf6c9f3734fd81292d73a8470325b358d6011db5d2d56bb0c5f836acdeb2