зеркало из https://github.com/mozilla/gecko-dev.git
97fd5248b0
MozReview-Commit-ID: 5mVyHlwTia1 --HG-- rename : third_party/rust/bindgen/.cargo-checksum.json => third_party/rust/bindgen-0.30.0/.cargo-checksum.json rename : third_party/rust/bindgen/Cargo.toml => third_party/rust/bindgen-0.30.0/Cargo.toml rename : third_party/rust/bindgen/build.rs => third_party/rust/bindgen-0.30.0/build.rs rename : third_party/rust/bindgen/src/codegen/derive_debug.rs => third_party/rust/bindgen-0.30.0/src/codegen/derive_debug.rs rename : third_party/rust/bindgen-0.29.1/src/codegen/error.rs => third_party/rust/bindgen-0.30.0/src/codegen/error.rs rename : third_party/rust/bindgen/src/codegen/helpers.rs => third_party/rust/bindgen-0.30.0/src/codegen/helpers.rs rename : third_party/rust/bindgen/src/codegen/mod.rs => third_party/rust/bindgen-0.30.0/src/codegen/mod.rs rename : third_party/rust/bindgen/src/codegen/struct_layout.rs => third_party/rust/bindgen-0.30.0/src/codegen/struct_layout.rs rename : third_party/rust/bindgen-0.29.1/src/extra_assertions.rs => third_party/rust/bindgen-0.30.0/src/extra_assertions.rs rename : third_party/rust/bindgen/src/features.rs => third_party/rust/bindgen-0.30.0/src/features.rs rename : third_party/rust/bindgen/src/ir/analysis/derive_copy.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/derive_copy.rs rename : third_party/rust/bindgen/src/ir/analysis/derive_debug.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/derive_debug.rs rename : third_party/rust/bindgen/src/ir/analysis/derive_default.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/derive_default.rs rename : third_party/rust/bindgen/src/ir/analysis/derive_hash.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/derive_hash.rs rename : third_party/rust/bindgen/src/ir/analysis/derive_partial_eq.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/derive_partial_eq.rs rename : third_party/rust/bindgen/src/ir/analysis/has_destructor.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/has_destructor.rs rename : third_party/rust/bindgen/src/ir/analysis/has_float.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/has_float.rs rename : third_party/rust/bindgen/src/ir/analysis/has_type_param_in_array.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/has_type_param_in_array.rs rename : third_party/rust/bindgen/src/ir/analysis/has_vtable.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/has_vtable.rs rename : third_party/rust/bindgen/src/ir/analysis/mod.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/mod.rs rename : third_party/rust/bindgen/src/ir/analysis/template_params.rs => third_party/rust/bindgen-0.30.0/src/ir/analysis/template_params.rs rename : third_party/rust/bindgen/src/ir/comp.rs => third_party/rust/bindgen-0.30.0/src/ir/comp.rs rename : third_party/rust/bindgen/src/ir/context.rs => third_party/rust/bindgen-0.30.0/src/ir/context.rs rename : third_party/rust/bindgen/src/ir/derive.rs => third_party/rust/bindgen-0.30.0/src/ir/derive.rs rename : third_party/rust/bindgen/src/ir/dot.rs => third_party/rust/bindgen-0.30.0/src/ir/dot.rs rename : third_party/rust/bindgen/src/ir/enum_ty.rs => third_party/rust/bindgen-0.30.0/src/ir/enum_ty.rs rename : third_party/rust/bindgen/src/ir/function.rs => third_party/rust/bindgen-0.30.0/src/ir/function.rs rename : third_party/rust/bindgen/src/ir/item.rs => third_party/rust/bindgen-0.30.0/src/ir/item.rs rename : third_party/rust/bindgen/src/ir/layout.rs => third_party/rust/bindgen-0.30.0/src/ir/layout.rs rename : third_party/rust/bindgen-0.29.1/src/ir/mod.rs => third_party/rust/bindgen-0.30.0/src/ir/mod.rs rename : third_party/rust/bindgen/src/ir/module.rs => third_party/rust/bindgen-0.30.0/src/ir/module.rs rename : third_party/rust/bindgen/src/ir/objc.rs => third_party/rust/bindgen-0.30.0/src/ir/objc.rs rename : third_party/rust/bindgen/src/ir/template.rs => third_party/rust/bindgen-0.30.0/src/ir/template.rs rename : third_party/rust/bindgen/src/ir/traversal.rs => third_party/rust/bindgen-0.30.0/src/ir/traversal.rs rename : third_party/rust/bindgen/src/ir/ty.rs => third_party/rust/bindgen-0.30.0/src/ir/ty.rs rename : third_party/rust/bindgen/src/ir/var.rs => third_party/rust/bindgen-0.30.0/src/ir/var.rs rename : third_party/rust/bindgen/src/lib.rs => third_party/rust/bindgen-0.30.0/src/lib.rs rename : third_party/rust/bindgen-0.29.1/src/log_stubs.rs => third_party/rust/bindgen-0.30.0/src/log_stubs.rs rename : third_party/rust/bindgen/src/main.rs => third_party/rust/bindgen-0.30.0/src/main.rs rename : third_party/rust/bindgen/src/options.rs => third_party/rust/bindgen-0.30.0/src/options.rs rename : third_party/rust/bindgen/src/parse.rs => third_party/rust/bindgen-0.30.0/src/parse.rs rename : third_party/rust/bindgen/src/regex_set.rs => third_party/rust/bindgen-0.30.0/src/regex_set.rs rename : third_party/rust/which/.cargo-checksum.json => third_party/rust/which-1.0.2/.cargo-checksum.json rename : third_party/rust/which/Cargo.toml => third_party/rust/which-1.0.2/Cargo.toml rename : third_party/rust/which/README.md => third_party/rust/which-1.0.2/README.md |
||
---|---|---|
.. | ||
src | ||
.cargo-checksum.json | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE.txt | ||
README.md |
README.md
which
A Rust equivalent of Unix command "which". Locate installed execuable in cross platforms.
Support platforms
- Linux
- Windows
- macOS
Example
To find which rustc exectable binary is using. Locate installed execuable in cross platforms.
use which::which;
let result = which::which("rustc").unwrap();
assert_eq!(result, PathBuf::from("/usr/bin/rustc"));
Documentation
The documentation is available online.