mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-07 04:30:03 +00:00
Add one-liner for installing cargo-binstall
on Windows (#1099)
* 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:
parent
b876bdc8c7
commit
a849db3ef4
2 changed files with 31 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue