Skip to content

Commit

Permalink
Update MSRV to 1.61
Browse files Browse the repository at this point in the history
This is needed for compatibility with the sapling dag crate.
  • Loading branch information
MForster committed Jan 19, 2023
1 parent 139fe08 commit 27228ce
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
rust_version: stable
- build: linux-msrv
os: ubuntu-latest
rust_version: "1.60"
rust_version: "1.61"
- build: macos
os: macos-latest
rust_version: stable
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Breaking changes

* The minimum supported Rust version (MSRV) is now 1.61.0.

* The `jj touchup` command was renamed to `jj diffedit`.

* The `-i` option to `jj restore` was removed in favor of new `--from`/`--to`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "jujutsu"
version = "0.6.1"
authors = ["Martin von Zweigbergk <martinvonz@google.com>"]
edition = "2021"
rust-version = "1.60" # Remember to update CI, contributing.md, and flake.nix
rust-version = "1.61" # Remember to update CI, contributing.md, and flake.nix
license = "Apache-2.0"
description = "Jujutsu (an experimental VCS)"
homepage = "https://github.com/martinvonz/jj"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ See below for how to build from source. There are also
[pre-built binaries](https://github.com/martinvonz/jj/releases) for Windows,
Mac, or Linux (musl).

If you're installing from source, you need to use Rust version 1.60 or higher,
If you're installing from source, you need to use Rust version 1.61 or higher,
or you will get a cryptic message like this:
```
error: failed to select a version for the requirement `libgit2-sys = "=0.14.0"``
Expand Down
6 changes: 3 additions & 3 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ recommended steps.
One-time setup:

rustup toolchain add nightly # If this is not your default
rustup toolchain add 1.60
rustup toolchain add 1.61
cargo install cargo-insta
cargo install cargo-watch
cargo install cargo-nextest
Expand All @@ -81,7 +81,7 @@ During development (adapt according to your preference):

cargo watch --ignore '.jj/**' -s \
'cargo clippy --workspace --all-targets \
&& cargo +1.60 check --workspace --all-targets'
&& cargo +1.61 check --workspace --all-targets'
cargo +nightly fmt # Occasionally
cargo nextest run --workspace # Occasionally
cargo insta test --workspace # Occasionally
Expand Down Expand Up @@ -109,7 +109,7 @@ These are listed roughly in order of decreasing importance.

3. Your code will be rejected if it cannot be compiled with the minimal
supported version of Rust. This version is listed as
`rust-version` in [`Cargo.toml`](../Cargo.toml); it is 1.60 as of this
`rust-version` in [`Cargo.toml`](../Cargo.toml); it is 1.61 as of this
writing.

4. Your code needs to pass `cargo clippy`. You can also
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "jujutsu-lib"
version = "0.6.1"
authors = ["Martin von Zweigbergk <martinvonz@google.com>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.61"
license = "Apache-2.0"
description = "Library for Jujutsu (an experimental VCS)"
homepage = "https://github.com/martinvonz/jj"
Expand Down
2 changes: 1 addition & 1 deletion lib/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use crate::backend::{ChangeId, CommitId, ObjectId};
use crate::commit::Commit;
use crate::file_util::persist_content_addressed_temp_file;
#[cfg(not(feature = "map_first_last"))]
// This import is used on Rust 1.60, but not on recent version.
// This import is used on Rust 1.61, but not on recent version.
// TODO: Remove it when our MSRV becomes recent enough.
#[allow(unused_imports)]
use crate::nightly_shims::BTreeSetExt;
Expand Down
2 changes: 1 addition & 1 deletion lib/testutils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "testutils"
version = "0.6.1"
authors = ["Martin von Zweigbergk <martinvonz@google.com>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.61"
license = "Apache-2.0"
description = "Integration test utils for the jujutsu-lib crate"
homepage = "https://github.com/martinvonz/jj"
Expand Down
3 changes: 2 additions & 1 deletion src/cli_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,8 @@ pub fn parse_args(
Ok((matches, args))
}

// TODO: Return std::process::ExitCode instead, once our MSRV is >= 1.61
// TODO: Return std::process::ExitCode instead, once
// feature(exitcode_exit_method) is stabilized
#[must_use]
pub fn handle_command_result(ui: &mut Ui, result: Result<(), CommandError>) -> i32 {
match result {
Expand Down

0 comments on commit 27228ce

Please sign in to comment.