vsock 0.5.1

Virtio socket support for Rust
Documentation
Build #1338584 2024-08-27T12:54:48.818771+00:00
# rustc version
rustc 1.82.0-nightly (515395af0 2024-08-26)# docs.rs version
docsrs 0.6.0 (a6155e2c 2024-08-13)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/vsock-0.5.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/vsock-0.5.1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240826-1.82.0-nightly-515395af0\", \"--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}/x86_64-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stdout] cdfb66817112e8e21a37e84d2e57877412ef771d011e319a640a35600644986b
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "cdfb66817112e8e21a37e84d2e57877412ef771d011e319a640a35600644986b", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting vsock v0.5.1 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0432]: unresolved imports `libc::fcntl`, `libc::ioctl`, `libc::sa_family_t`, `libc::sockaddr_vm`, `libc::socklen_t`, `libc::suseconds_t`, `libc::AF_VSOCK`, `libc::FD_CLOEXEC`, `libc::FIONBIO`, `libc::F_SETFD`
[INFO] [stderr]   --> src/lib.rs:21:13
[INFO] [stderr]    |
[INFO] [stderr] 21 |     accept, fcntl, ioctl, sa_family_t, sockaddr, sockaddr_vm, socklen_t, suseconds_t, timeval,
[INFO] [stderr]    |             ^^^^^  ^^^^^  ^^^^^^^^^^^            ^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^^^^^^ no `suseconds_t` in the root
[INFO] [stderr]    |             |      |      |                      |            |
[INFO] [stderr]    |             |      |      |                      |            no `socklen_t` in the root
[INFO] [stderr]    |             |      |      |                      no `sockaddr_vm` in the root
[INFO] [stderr]    |             |      |      no `sa_family_t` in the root
[INFO] [stderr]    |             |      no `ioctl` in the root
[INFO] [stderr]    |             no `fcntl` in the root
[INFO] [stderr] 22 |     AF_VSOCK, FD_CLOEXEC, FIONBIO, F_SETFD,
[INFO] [stderr]    |     ^^^^^^^^  ^^^^^^^^^^  ^^^^^^^  ^^^^^^^ no `F_SETFD` in the root
[INFO] [stderr]    |     |         |           |
[INFO] [stderr]    |     |         |           no `FIONBIO` in the root
[INFO] [stderr]    |     |         no `FD_CLOEXEC` in the root
[INFO] [stderr]    |     no `AF_VSOCK` in the root
[INFO] [stderr]    |
[INFO] [stderr] help: a similar name exists in the module
[INFO] [stderr]    |
[INFO] [stderr] 21 |     accept, fcntl, ioctl, sa_family_t, sockaddr, sockaddr, socklen_t, suseconds_t, timeval,
[INFO] [stderr]    |                                                  ~~~~~~~~
[INFO] [stderr] help: a similar name exists in the module
[INFO] [stderr]    |
[INFO] [stderr] 21 |     accept, fcntl, ioctl, sa_family_t, sockaddr, sockaddr_vm, socket, suseconds_t, timeval,
[INFO] [stderr]    |                                                               ~~~~~~
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `sys` in `nix`
[INFO] [stderr]   --> src/lib.rs:26:5
[INFO] [stderr]    |
[INFO] [stderr] 26 |     sys::socket::{
[INFO] [stderr]    |     ^^^ could not find `sys` in `nix`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `unix` in `os`
[INFO] [stderr]   --> src/lib.rs:35:14
[INFO] [stderr]    |
[INFO] [stderr] 35 | use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
[INFO] [stderr]    |              ^^^^ could not find `unix` in `os`
[INFO] [stderr]    |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:27:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:19:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:65:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:64:1
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved imports `nix::ioctl_read_bad`, `nix::sys`, `nix::unistd`
[INFO] [stderr]   --> src/lib.rs:25:5
[INFO] [stderr]    |
[INFO] [stderr] 25 |     ioctl_read_bad,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^ no `ioctl_read_bad` in the root
[INFO] [stderr] 26 |     sys::socket::{
[INFO] [stderr]    |     ^^^ could not find `sys` in `nix`
[INFO] [stderr] ...
[INFO] [stderr] 31 |     unistd::close,
[INFO] [stderr]    |     ^^^^^^ could not find `unistd` in `nix`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `std::os::fd`
[INFO] [stderr]   --> src/lib.rs:37:25
[INFO] [stderr]    |
[INFO] [stderr] 37 | use std::{fs::File, os::fd::OwnedFd};
[INFO] [stderr]    |                         ^^ could not find `fd` in `os`
[INFO] [stderr]    |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:160:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:159:1
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `std::os::fd`
[INFO] [stderr]   --> src/lib.rs:40:9
[INFO] [stderr]    |
[INFO] [stderr] 40 |     os::fd::{AsFd, BorrowedFd},
[INFO] [stderr]    |         ^^ could not find `fd` in `os`
[INFO] [stderr]    |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:160:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/515395af0efdbdd657ff08a1f6d28e553856654f\library\std\src\os\mod.rs:159:1
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `sys` in `nix`
[INFO] [stderr]   --> src/lib.rs:46:14
[INFO] [stderr]    |
[INFO] [stderr] 46 | pub use nix::sys::socket::{SockaddrLike, VsockAddr};
[INFO] [stderr]    |              ^^^ could not find `sys` in `nix`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved imports `libc::VMADDR_CID_ANY`, `libc::VMADDR_CID_HOST`, `libc::VMADDR_CID_HYPERVISOR`
[INFO] [stderr]   --> src/lib.rs:45:16
[INFO] [stderr]    |
[INFO] [stderr] 45 | pub use libc::{VMADDR_CID_ANY, VMADDR_CID_HOST, VMADDR_CID_HYPERVISOR};
[INFO] [stderr]    |                ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^ no `VMADDR_CID_HYPERVISOR` in the root
[INFO] [stderr]    |                |               |
[INFO] [stderr]    |                |               no `VMADDR_CID_HOST` in the root
[INFO] [stderr]    |                no `VMADDR_CID_ANY` in the root
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0432`.
[INFO] [stderr] error: could not document `vsock`
[INFO] running `Command { std: "docker" "inspect" "cdfb66817112e8e21a37e84d2e57877412ef771d011e319a640a35600644986b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cdfb66817112e8e21a37e84d2e57877412ef771d011e319a640a35600644986b", kill_on_drop: false }`
[INFO] [stdout] cdfb66817112e8e21a37e84d2e57877412ef771d011e319a640a35600644986b