Add one-liner for installing cargo-binstall on Windows ()

* Add one-liner for installing `cargo-binstall` on Windows

* Change command separator to semicolon

`&&` was added in Powershell 7

* Update win install script to exit on error and trace
This commit is contained in:
Aadi Desai 2023-06-03 10:15:11 +01:00 committed by GitHub
parent b876bdc8c7
commit a849db3ef4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -21,6 +21,12 @@ Here are the one-liners for installing pre-compiled `cargo-binstall` binary from
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
```
And the one-liner for installing a pre-compiled `cargo-binstall` binary from release on Windows (x86_64 and aarch64):
```
Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content
```
To get started _using_ `cargo-binstall` first install the binary (either via `cargo install cargo-binstall` or by downloading a pre-compiled [release](https://github.com/cargo-bins/cargo-binstall/releases)), then extract it using `tar` or `unzip` and move it into `$HOME/.cargo/bin`.
We recommend using the pre-compiled ones because we optimize those more than a standard source build does.