Skip to content
box

GitHub Action

brndnmtthws/rust-action-cargo-binstall

v1.1.0 Latest version

brndnmtthws/rust-action-cargo-binstall

box

brndnmtthws/rust-action-cargo-binstall

Cargo binstall action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: brndnmtthws/rust-action-cargo-binstall

uses: brndnmtthws/[email protected]

Learn more about this action in brndnmtthws/rust-action-cargo-binstall

Choose a version

Build and test

GitHub action for installing Cargo packages

This action provides a simple way to install Cargo packages using cargo binstall. cargo binstall allows us to speed up our CI by using binary packages where available, rather than compiling everything from source.

This is useful for installing tools such as Tarpaulin, sccache, or any other Rust package that's supported by cargo binstall in your GitHub Actions.

You can use this action in your workflow directly, or use the all-in-one action for all your Rust CI needs. While this action is intended to be used with Rust projects, it's also useful on its own for non-Rust projects (for example, to use sccache with C++).

Inputs

Input Description Example
packages A comma or whitespace separated list of packages to install using cargo binstall. cargo-watch cargo-tree cargo-tarpaulin

Recipes

Install cargo-tarpaulin and sccache

Show me the code
- uses: brndnmtthws/rust-action-cargo-binstall@v1
  with:
    packages: cargo-tarpaulin sccache