which 4.0.0

A Rust equivalent of Unix command "which". Locate installed executable in cross platforms.
Documentation

Build #255704 2020-05-30 12:59:10

# rustc version rustc 1.45.0-nightly (4bd32c980 2020-05-29)

# docs.rs version docsrs 0.6.0 (f6cd70b 2020-05-29)

# build log [INFO] running `"docker" "create" "-v" "/home/cratesfyi/workspace/builds/which-4.0.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/which-4.0.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1001" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=-Z unstable-options --resource-suffix -20200529-1.45.0-nightly-4bd32c980 --static-root-path / --cap-lints warn --extern-html-root-url libc=https://docs.rs/libc/0.2.71 --extern-html-root-url thiserror=https://docs.rs/thiserror/1.0.19 --extern-html-root-url tempdir=https://docs.rs/tempdir/0.3.7" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "2" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "doc" "--lib" "--no-deps" "-j2"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 342b9b30158183c4a36e7704d442b60388140efd372b641e1f25489c74bb23e5 [INFO] running `"docker" "start" "-a" "342b9b30158183c4a36e7704d442b60388140efd372b641e1f25489c74bb23e5"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.29 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling thiserror-impl v1.0.19 [INFO] [stderr] Checking thiserror v1.0.19 [INFO] [stderr] Documenting which v4.0.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unknown attribute `norun`. Did you mean `no_run`? [INFO] [stderr] --> src/lib.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / //! which [INFO] [stderr] 2 | | //! [INFO] [stderr] 3 | | //! A Rust equivalent of Unix command `which(1)`. [INFO] [stderr] 4 | | //! # Example: [INFO] [stderr] ... | [INFO] [stderr] 13 | | //! [INFO] [stderr] 14 | | //! ``` [INFO] [stderr] | |_______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(invalid_codeblock_attribute)]` on by default [INFO] [stderr] = help: the code block will either not be tested if not marked as a rust one or will be run (which you might not want) [INFO] [stderr] [INFO] [stderr] warning: unknown attribute `norun`. Did you mean `no_run`? [INFO] [stderr] --> src/lib.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | / /// Find a exectable binary's path by name. [INFO] [stderr] 38 | | /// [INFO] [stderr] 39 | | /// If given an absolute path, returns it if the file exists and is executable. [INFO] [stderr] 40 | | /// [INFO] [stderr] ... | [INFO] [stderr] 56 | | /// [INFO] [stderr] 57 | | /// ``` [INFO] [stderr] | |_______^ [INFO] [stderr] | [INFO] [stderr] = help: the code block will either not be tested if not marked as a rust one or will be run (which you might not want) [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.42s [INFO] running `"docker" "inspect" "342b9b30158183c4a36e7704d442b60388140efd372b641e1f25489c74bb23e5"` [INFO] running `"docker" "rm" "-f" "342b9b30158183c4a36e7704d442b60388140efd372b641e1f25489c74bb23e5"` [INFO] [stdout] 342b9b30158183c4a36e7704d442b60388140efd372b641e1f25489c74bb23e5