Skip to content

Commit

Permalink
build: try asdf-cargo-binstall
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Feb 25, 2024
1 parent ea0162b commit f000cd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ just = '1'
grpcurl = '*'
grpc-health-probe = "*"
sccache = "0.5"
cargo-binstall = "latest"

[plugins]
cargo-binstall = "https://github.com/davidB/asdf-cargo-binstall"
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
_install_cargo-binstall:
# cargo install --locked cargo-binstall
cargo-binstall -V || (curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash)
@# cargo install --locked cargo-binstall
@(cargo-binstall -V > /dev/null) || (curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash)

_binstall ARG: _install_cargo-binstall
cargo binstall -y {{ARG}} || cargo install --locked {{ARG}}
@(cargo binstall -y {{ARG}} || cargo install --locked {{ARG}})

_install_cargo-nextest:
@just _binstall cargo-nextest
Expand Down

0 comments on commit f000cd8

Please sign in to comment.