Skip to content

Install a Rust crate from a GitHub release

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

rossmacarthur/install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install

This repository just contains a little script that can be downloaded from the internet to install a Rust crate from a GitHub release. It determines the latest release, the current platform (without the need for rustc), and installs the extracted binary to the specified location.

Usage

To install a crate simply run the following

curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh \
    | bash -s -- --repo "<username>/<repository>" --to ~/.cargo/bin

Examples

curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh \
    | bash -s -- --repo rust-embedded/cross --to /usr/local/bin
curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh \
    | bash -s -- --repo sharkdp/hyperfine --to /usr/local/bin
curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh \
    | bash -s -- --repo casey/just --to /usr/local/bin
curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh \
    | bash -s -- --repo BurntSushi/ripgrep --bin rg --to /usr/local/bin
curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh \
    | bash -s -- --repo rossmacarthur/sheldon --to /usr/local/bin

Acknowledgements

This script was inspired by the japaric/trust install script. The platform detection code is taken from rust-lang/rustup.

License

This project is licensed under either of

About

Install a Rust crate from a GitHub release

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages