openat 0.1.21

A wrapper around openat, symlinkat, and similar system calls
Documentation
Build #1537837 2024-11-14T21:53:45.779590+00:00
# rustc version
rustc 1.84.0-nightly (8adb4b30f 2024-11-13)# 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/openat-0.1.21/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/openat-0.1.21/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\", \"-20241113-1.84.0-nightly-8adb4b30f\", \"--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] [stdout] 6c4b4884c2e7ed24102e9232b6a379759ab6cbed0a1ff5f8b4ba6817bd8656f8
[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" "6c4b4884c2e7ed24102e9232b6a379759ab6cbed0a1ff5f8b4ba6817bd8656f8", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: exchange
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting openat v0.1.21 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0433]: failed to resolve: could not find `unix` in `os`
[INFO] [stderr]  --> src/dir.rs:5:14
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::os::unix::io::{AsRawFd, RawFd, 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/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\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/dir.rs:6:14
[INFO] [stderr]   |
[INFO] [stderr] 6 | use std::os::unix::ffi::{OsStringExt};
[INFO] [stderr]   |              ^^^^ could not find `unix` in `os`
[INFO] [stderr]   |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\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/list.rs:4:14
[INFO] [stderr]   |
[INFO] [stderr] 4 | 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/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\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/name.rs:3:14
[INFO] [stderr]   |
[INFO] [stderr] 3 | 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/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\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/metadata.rs:2:14
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::os::unix::fs::PermissionsExt;
[INFO] [stderr]   |              ^^^^ could not find `unix` in `os`
[INFO] [stderr]   |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]  --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\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:62:14
[INFO] [stderr]    |
[INFO] [stderr] 62 | use std::os::unix::io::RawFd;
[INFO] [stderr]    |              ^^^^ could not find `unix` in `os`
[INFO] [stderr]    |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:36:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:28:1
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:85:9
[INFO] [stderr] note: the item is gated here
[INFO] [stderr]   --> /rustc/8adb4b30f40e6fbd21dc1ba26c3301c7eeb6de3c\library\std\src\os\mod.rs:84:1
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `O_CLOEXEC` in crate `libc`
[INFO] [stderr]   --> src/dir.rs:20:44
[INFO] [stderr]    |
[INFO] [stderr] 20 | const BASE_OPEN_FLAGS: libc::c_int = libc::O_CLOEXEC;
[INFO] [stderr]    |                                            ^^^^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:129:62
[INFO] [stderr]     |
[INFO] [stderr] 129 |     pub fn write_file<P: AsPath>(&self, path: P, mode: libc::mode_t)
[INFO] [stderr]     |                                                              ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:143:63
[INFO] [stderr]     |
[INFO] [stderr] 143 |     pub fn append_file<P: AsPath>(&self, path: P, mode: libc::mode_t)
[INFO] [stderr]     |                                                               ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:162:63
[INFO] [stderr]     |
[INFO] [stderr] 162 |     pub fn create_file<P: AsPath>(&self, path: P, mode: libc::mode_t)
[INFO] [stderr]     |                                                               ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:223:60
[INFO] [stderr]     |
[INFO] [stderr] 223 |     pub fn new_unnamed_file<P: AsPath>(&self, _mode: libc::mode_t)
[INFO] [stderr]     |                                                            ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:276:60
[INFO] [stderr]     |
[INFO] [stderr] 276 |     pub fn new_file<P: AsPath>(&self, path: P, mode: libc::mode_t)
[INFO] [stderr]     |                                                            ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:290:63
[INFO] [stderr]     |
[INFO] [stderr] 290 |     pub fn update_file<P: AsPath>(&self, path: P, mode: libc::mode_t)
[INFO] [stderr]     |                                                               ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:298:71
[INFO] [stderr]     |
[INFO] [stderr] 298 |     fn _open_file(&self, path: &CStr, flags: libc::c_int, mode: libc::mode_t)
[INFO] [stderr]     |                                                                       ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:339:62
[INFO] [stderr]     |
[INFO] [stderr] 339 |     pub fn create_dir<P: AsPath>(&self, path: P, mode: libc::mode_t)
[INFO] [stderr]     |                                                              ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `mode_t` in crate `libc`
[INFO] [stderr]    --> src/dir.rs:344:52
[INFO] [stderr]     |
[INFO] [stderr] 344 |     fn _create_dir(&self, path: &CStr, mode: libc::mode_t) -> io::Result<()> {
[INFO] [stderr]     |                                                    ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DIR` in crate `libc`
[INFO] [stderr]   --> src/list.rs:21:21
[INFO] [stderr]    |
[INFO] [stderr] 21 |     dir: *mut libc::DIR,
[INFO] [stderr]    |                     ^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `dirent` in crate `libc`
[INFO] [stderr]   --> src/list.rs:59:65
[INFO] [stderr]    |
[INFO] [stderr] 59 |     unsafe fn next_entry(&mut self) -> io::Result<Option<&libc::dirent>>
[INFO] [stderr]    |                                                                 ^^^^^^ not found in `libc`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not resolve path `libc::O_CLOEXEC`
[INFO] [stderr]   --> src/dir.rs:20:38
[INFO] [stderr]    |
[INFO] [stderr] 20 | const BASE_OPEN_FLAGS: libc::c_int = libc::O_CLOEXEC;
[INFO] [stderr]    |                                      ^^^^^^^^^^^^^^^ could not resolve path `libc::O_CLOEXEC`
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error was originally ignored because you are running `rustdoc`
[INFO] [stderr]    = note: try running again with `rustc` or `cargo check` and you may get a more detailed error
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not document `openat`
[INFO] running `Command { std: "docker" "inspect" "6c4b4884c2e7ed24102e9232b6a379759ab6cbed0a1ff5f8b4ba6817bd8656f8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c4b4884c2e7ed24102e9232b6a379759ab6cbed0a1ff5f8b4ba6817bd8656f8", kill_on_drop: false }`
[INFO] [stdout] 6c4b4884c2e7ed24102e9232b6a379759ab6cbed0a1ff5f8b4ba6817bd8656f8