[−][src]Attribute Macro realia::cmd
#[cmd]
Checks whether an executable exists on the PATH
.
If you use this attribute, your project should include a build.rs
that
triggers a rebuild when the PATH
environment variable changes:
fn main() { println!("cargo:rerun-if-env-changed=PATH"); }
Example
#[realia::cmd("git")] fn example() { println!("Git is installed and available"); }