Skip to content

RoxyOS/cargo-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo-install

Wrapper around the cargo install command

Quick Start

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(())
}

This builds and runs a command equivalent to:

cargo install --version 14.1.1 --bin rg --profile release --locked ripgrep

About

Wrapper around the cargo install command

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages