#executable #path #locate #env #which

quale

A Rust port of the which utility. Locates an executable in the user’s path.

1 stable release

Uses old Rust 2015

1.0.0 Apr 25, 2016

#6 in #which

Download history 34/week @ 2024-11-14 103/week @ 2024-11-21 73/week @ 2024-11-28 159/week @ 2024-12-05 118/week @ 2024-12-12 43/week @ 2024-12-19 23/week @ 2024-12-26 56/week @ 2025-01-02 235/week @ 2025-01-09 408/week @ 2025-01-16 370/week @ 2025-01-23 186/week @ 2025-01-30 378/week @ 2025-02-06 298/week @ 2025-02-13 310/week @ 2025-02-20 737/week @ 2025-02-27

1,766 downloads per month
Used in afl-plugin

MIT/Apache

5KB
57 lines

rust-quale

A Rust port of the which utility. Locates an executable in the user’s path.

‘Quale’ is an Italian translation of the English word ‘which’.

Note: rust-quale currently only works on Unix-like operating systems.

Usage

[dependencies]
quale = "1.0"
extern crate quale;

use quale::which;

fn main() {
    assert_eq!(
        which("sh"),
        Some("/bin/sh".into()));

    assert_eq!(
        which("foobar"),
        None);
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~43KB