feat: add cargo binstall support (#3578)

This commit is contained in:
qedk
2023-07-05 17:03:56 +04:00
committed by GitHub
parent ceb4e355a2
commit 706fc41816
2 changed files with 12 additions and 0 deletions

View File

@ -133,3 +133,8 @@ futures-util = "0.3.25"
## crypto
secp256k1 = { version = "0.27.0", default-features = false, features = ["global-context", "rand-std", "recovery"] }
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"

View File

@ -26,3 +26,10 @@ As an example, you could install the Linux x86_64 version like so:
1. Test the binary with `./reth --version` (it should print the version).
2. (Optional) Move the `reth` binary to a location in your `PATH`, so the `reth` command can be called from anywhere.
For most Linux distros, you can move the binary to `/usr/local/bin`: `sudo cp ./reth /usr/local/bin`.
### Using `cargo-binstall`
Alternatively, if you have [binstall](https://github.com/cargo-bins/cargo-binstall) installed, you can use it to install and load the binary:
```bash
cargo binstall reth
```