Skip to content

Commit

Permalink
[meta] update MSRV to Rust 1.62
Browse files Browse the repository at this point in the history
Also fix up new clippy warnings.

Pull Request: #58
  • Loading branch information
sunshowers committed Jan 8, 2023
1 parent 3bf5276 commit 6b01e41
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
rust-version: [ 1.58, stable ]
rust-version: [ 1.62, stable ]
fail-fast: false
env:
RUSTFLAGS: -D warnings
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
rust-version: [ 1.58, stable ]
rust-version: [ 1.62, stable ]
fail-fast: false
env:
RUSTFLAGS: -D warnings
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ metadata`](https://doc.rust-lang.org/cargo/commands/cargo-metadata.html) format.

## Minimum supported Rust version

The minimum supported Rust version (MSRV) is **1.58**.
The minimum supported Rust version (MSRV) is **1.62**.

While a crate is pre-release status (0.x.x) it may have its MSRV bumped in a patch release. Once a crate has reached
1.x, any MSRV bump will be accompanied with a new minor version.

At any given time, at least the last 3 versions of Rust will be supported.

## Contributing

See the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out.
Expand Down
1 change: 0 additions & 1 deletion clippy.toml

This file was deleted.

6 changes: 6 additions & 0 deletions guppy-summaries/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Changed

- MSRV updated to Rust 1.62.

## [0.7.1] - 2022-09-30

### Changed
Expand Down
2 changes: 1 addition & 1 deletion guppy-summaries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude = [
# Readme template that doesn't need to be included.
"README.tpl",
]
rust-version = "1.58"
rust-version = "1.62"

[package.metadata.docs.rs]
all-features = true
Expand Down
6 changes: 6 additions & 0 deletions guppy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Changed

- MSRV updated to Rust 1.62.

## [0.15.1] - 2022-12-04

### Added
Expand Down
2 changes: 1 addition & 1 deletion guppy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude = [
# Readme template that doesn't need to be included.
"README.tpl",
]
rust-version = "1.58"
rust-version = "1.62"

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 2 additions & 2 deletions guppy/src/graph/feature/weak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ where
}
SingleBufferState::Accepted => {
// Weak link, but package already accepted.
Either::Left((self.accept_fn)(link).then(|| edge_ref))
Either::Left((self.accept_fn)(link).then_some(edge_ref))
}
}
}
Expand All @@ -107,7 +107,7 @@ where
.into_iter()
.filter_map(|(link, edge_ref)| {
// Filter buffered links.
(self.accept_fn)(link).then(|| edge_ref)
(self.accept_fn)(link).then_some(edge_ref)
})
.collect();
edge_refs.push(edge_ref);
Expand Down
6 changes: 6 additions & 0 deletions target-spec-miette/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Changed

- MSRV updated to Rust 1.62.

## [0.1.0] - 2022-10-25

Initial release with support for miette 5.
Expand Down
2 changes: 1 addition & 1 deletion target-spec-miette/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
keywords = ["cargo", "targets", "platforms", "miette"]
categories = ["development-tools"]
edition = "2021"
rust-version = "1.58"
rust-version = "1.62"

[dependencies]
target-spec = { version = "1.2.2", path = "../target-spec" }
Expand Down
7 changes: 7 additions & 0 deletions target-spec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Unreleased

### Changed

- Internal dependency `cfg-expr` updated to 0.13.0, updating builtin targets to Rust 1.66.
- MSRV updated to Rust 1.62.

## [1.2.2] - 2022-11-07

### Updated
Expand Down
2 changes: 1 addition & 1 deletion target-spec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
keywords = ["cargo", "targets", "platforms", "os", "cpu"]
categories = ["development-tools", "parser-implementations"]
edition = "2021"
rust-version = "1.58"
rust-version = "1.62"

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion tools/cargo-hakari/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords = [
"guppy",
]
categories = ["development-tools::cargo-plugins"]
rust-version = "1.58"
rust-version = "1.62"

[dependencies]
camino = "1.1.2"
Expand Down
6 changes: 6 additions & 0 deletions tools/determinator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Changed

- MSRV updated to Rust 1.62.

## [0.10.0] - 2022-11-07

### Changed
Expand Down
2 changes: 1 addition & 1 deletion tools/determinator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ include = [
# Include default rules with the package.
"default-rules.toml",
]
rust-version = "1.58"
rust-version = "1.62"

[dependencies]
camino = "1.1.2"
Expand Down
6 changes: 6 additions & 0 deletions tools/hakari/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Changed

- MSRV updated to Rust 1.62.

## [0.11.1] - 2022-12-04

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion tools/hakari/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords = [
"guppy",
]
categories = ["development-tools"]
rust-version = "1.58"
rust-version = "1.62"

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 3 additions & 1 deletion tools/hakari/src/cli_ops/manage_deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ impl<'g> HakariBuilder<'g> {
(Some(_), false) => Some(false),
(Some(link), true) => match self.dep_format_version {
DepFormatVersion::V1 => None,
DepFormatVersion::V2 => needs_update_v2(hakari_package, link).then(|| true),
DepFormatVersion::V2 => {
needs_update_v2(hakari_package, link).then_some(true)
}
},
(None, false) => None,
}
Expand Down

0 comments on commit 6b01e41

Please sign in to comment.