which 4.0.2

A Rust equivalent of Unix command "which". Locate installed executable in cross platforms.
Documentation
Build #277979 2020-08-04T14:52:05.259613+00:00
# rustc version
rustc 1.47.0-nightly (6c8927b0c 2020-07-26)# docs.rs version
docsrs 0.6.0 (482d566 2020-08-03)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/which-4.0.2/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/which-4.0.2/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 -20200726-1.47.0-nightly-6c8927b0c --static-root-path / --cap-lints warn --extern-html-root-url libc=https://docs.rs/libc/0.2.74 --extern-html-root-url thiserror=https://docs.rs/thiserror/1.0.20 --extern-html-root-url tempdir=https://docs.rs/tempdir/0.3.7" "-e" "DOCS_RS=1" "-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", kill_on_drop: false }`
[INFO] [stdout] 5757719e3cba4e446ea17c047aae1a35a0a0a4c052569939f09c271ec50ecc59
[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" "5757719e3cba4e446ea17c047aae1a35a0a0a4c052569939f09c271ec50ecc59", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.19
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling syn v1.0.37
[INFO] [stderr]    Compiling libc v0.2.74
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling thiserror-impl v1.0.20
[INFO] [stderr]     Checking thiserror v1.0.20
[INFO] [stderr]  Documenting which v4.0.2 (/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_attributes)]` 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 11.23s
[INFO] running `Command { std: "docker" "inspect" "5757719e3cba4e446ea17c047aae1a35a0a0a4c052569939f09c271ec50ecc59", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5757719e3cba4e446ea17c047aae1a35a0a0a4c052569939f09c271ec50ecc59", kill_on_drop: false }`
[INFO] [stdout] 5757719e3cba4e446ea17c047aae1a35a0a0a4c052569939f09c271ec50ecc59