Skip to content

Commit

Permalink
install-and-setup.md: Document binary installation with cargo-binstall
Browse files Browse the repository at this point in the history
I also mentioned this in the changelog, since people reading it are more likely
to use `binstall` than most.
  • Loading branch information
ilyagr committed Oct 30, 2023
1 parent 2cd262d commit 38daa9a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### New features

* `jj`'s stable release can now be installed with [`cargo binstall jj-cli`](https://github.com/cargo-bins/cargo-binstall).

* `jj workspace add` now takes a `--revision` argument.

* `jj workspace forget` can now forget multiple workspaces at once.
Expand Down
13 changes: 13 additions & 0 deletions docs/install-and-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ version should work on all distributions).
If you'd like to install a prerelease version, you'll need to use one of the
options below.

#### Cargo BInstall

If you use [`cargo-binstall`](https://github.com/cargo-bins/cargo-binstall), you
can install the same binaries of the last `jj` release from GitHub as follows:

```shell
# Will put the jj binary for the latest release in ~/.cargo/bin by default
cargo binstall --strategy crate-meta-data jj-cli
```

Without the `--strategy` option, you may get equivalent binaries that should be
compiled from the same source code.


### Linux

Expand Down

0 comments on commit 38daa9a

Please sign in to comment.