Expand description
Wrapper around the cargo install command.
The crate exposes a builder for the most common cargo install
options, plus extra_args for unsupported flags.
§Example
use cargo_install::CargoInstallBuilder;
fn main() -> Result<(), Box<dyn std::error::Error>> {
CargoInstallBuilder::default()
.crate_name("ripgrep")
.version("14.1.1")
.bin("rg")
.profile("release")
.locked(true)
.build()?
.run()?;
Ok(())
}Structs§
- Cargo
Install - Configuration for a
cargo installinvocation. - Cargo
Install Builder - Builder for
CargoInstall.
Enums§
- Cargo
Install Builder Error - Error type for CargoInstallBuilder
- Cargo
Install Error - Errors returned when executing
cargo install.