tokio-vsock 0.6.0

Asynchronous Virtio socket support for Rust
Documentation
Build #1531336 2024-11-13T17:16:36.217534+00:00
# rustc version
rustc 1.84.0-nightly (f7273e004 2024-11-12)# 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/tokio-vsock-0.6.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/tokio-vsock-0.6.0/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" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241112-1.84.0-nightly-f7273e004\", \"--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] 92dac4cd11106f97b572e841c3a48bef22afc66f3c810203cd4fc97c2d8fb45d
[INFO] running `Command { std: "docker" "start" "-a" "92dac4cd11106f97b572e841c3a48bef22afc66f3c810203cd4fc97c2d8fb45d", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]     Checking tokio v1.41.1
[INFO] [stderr]     Checking http-body-util v0.1.2
[INFO] [stderr]     Checking tower v0.5.1
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking vsock v0.5.1
[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]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:84:1
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved imports `nix::ioctl_read_bad`, `nix::sys`, `nix::unistd`
[INFO] [stderr]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:182:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:181:1
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `std::os::fd`
[INFO] [stderr]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:182:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/f7273e0044ad8f35ad27282e4ab776af50b61a54\library\std\src\os\mod.rs:181:1
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `sys` in `nix`
[INFO] [stderr]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/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] error[E0425]: cannot find function `vm_sockets_get_local_cid` in this scope
[INFO] [stderr]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/vsock-0.5.1/src/lib.rs:395:14
[INFO] [stderr]     |
[INFO] [stderr] 395 |     unsafe { vm_sockets_get_local_cid(f.as_raw_fd(), &mut cid) }?;
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0425`.
[INFO] [stderr] error: could not compile `vsock` (lib) due to 9 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "92dac4cd11106f97b572e841c3a48bef22afc66f3c810203cd4fc97c2d8fb45d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "92dac4cd11106f97b572e841c3a48bef22afc66f3c810203cd4fc97c2d8fb45d", kill_on_drop: false }`
[INFO] [stdout] 92dac4cd11106f97b572e841c3a48bef22afc66f3c810203cd4fc97c2d8fb45d