Skip to content

Commit

Permalink
[meta] prepare releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Dec 23, 2024
1 parent 0d0ead9 commit 12c55a6
Show file tree
Hide file tree
Showing 12 changed files with 123 additions and 24 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ insta = "1.41.1"
miette = "7.4.0"

[workspace.package]
# Note: we commit to supporting the last 6 months of Rust releases. This
# typically means N-4 to 5.
rust-version = "1.78"

[workspace.lints.rust]
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ The minimum supported Rust version (MSRV) is **Rust 1.78**.
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.
At any given time, at least the last 3 versions of Rust will be supported. For `target-spec`, at least
the last 6 months of stable Rust releases will be supported.

## Contributing

Expand Down
16 changes: 16 additions & 0 deletions guppy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## [0.17.11] - 2024-12-22

### Added

Added support for the upcoming [Cargo resolver version
3](https://doc.rust-lang.org/beta/cargo/reference/resolver.html#resolver-versions):
within guppy, `CargoResolverVersion::V3`. Resolver version 3 enables MSRV-aware
version resolution in Cargo.

The portion of dependency resolution that guppy works with (package and feature
resolution) happens after dependency versions have been resolved and
`Cargo.lock` is refreshed. This means that from guppy's perspective, resolver
version 3 is the same as version 2, and `CargoResolverVersion::V3` acts as an
alias for `CargoResolverVersion::V2`.

## [0.17.10] - 2024-12-03

### Changed
Expand Down Expand Up @@ -705,6 +720,7 @@ lazy_static = "0.2"

- Initial release.

[0.17.11]: https://github.com/guppy-rs/guppy/releases/tag/guppy-0.17.11
[0.17.10]: https://github.com/guppy-rs/guppy/releases/tag/guppy-0.17.10
[0.17.9]: https://github.com/guppy-rs/guppy/releases/tag/guppy-0.17.9
[0.17.8]: https://github.com/guppy-rs/guppy/releases/tag/guppy-0.17.8
Expand Down
9 changes: 7 additions & 2 deletions target-spec-miette/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Changelog

## Unreleased
## [0.4.1] - 2024-12-22

### Added

- Added implementation for target-spec's `CustomTripleCreateError`.

### Changed

- MSRV updated to Rust 1.75.
- MSRV updated to Rust 1.78.

## [0.4.0] - 2024-02-05

Expand All @@ -30,6 +34,7 @@

Initial release with support for miette 5.

[0.5.0]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-miette-0.5.0
[0.4.0]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-miette-0.4.0
[0.3.0]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-miette-0.3.0
[0.2.0]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-miette-0.2.0
Expand Down
6 changes: 4 additions & 2 deletions target-spec-miette/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ produces. This can be used to pretty-print errors returned by target-spec.

### Minimum supported Rust version

The minimum supported Rust version (MSRV) is **Rust 1.75**. While this crate is in pre-release
status (0.x), The MSRV may be bumped in patch releases.
The minimum supported Rust version (MSRV) is **Rust 1.78**.

While this crate is in pre-release status (0.x), the MSRV may be bumped in
patch releases.

## Contributing

Expand Down
6 changes: 4 additions & 2 deletions target-spec-miette/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
//!
//! ## Minimum supported Rust version
//!
//! The minimum supported Rust version (MSRV) is **Rust 1.75**. While this crate is in pre-release
//! status (0.x), The MSRV may be bumped in patch releases.
//! The minimum supported Rust version (MSRV) is **Rust 1.78**.
//!
//! While this crate is in pre-release status (0.x), the MSRV may be bumped in
//! patch releases.
#![warn(missing_docs)]
#![forbid(unsafe_code)]
Expand Down
29 changes: 29 additions & 0 deletions target-spec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## [3.3.0] - 2024-12-22

### Added

- `CustomTripleCreateError` now has `input`, `input_string`, `line_and_column`,
and `label` methods. These methods aid in implementing
[`target-spec-miette`](https://docs.rs/target-spec-miette), and also allow
dependencies to be oblivious to whether the `custom` feature is enabled.

### Fixed

- Custom platforms now deserialize the `target-family` and `target-endian`
fields correctly. Previously, these fields were ignored and always treated
as empty.

### Deprecated

- `Error::CustomTripleCreate` is now deprecated. This error was never actually
created, and will be removed in the future.
- `CustomTripleCreateError::Deserialize` is now deprecated. target-spec now creates
a different `DeserializeJson` variant when deserialization fails. This variant
also contains the original input being deserialized.

### Changed

- MSRV updated to Rust 1.78.
- Internal dependency `cfg-expr` updated to 0.17.2, updating builtin targets to Rust 1.83.

## [3.2.2] - 2024-09-11

### Changed
Expand Down Expand Up @@ -303,6 +331,7 @@ This was mistakenly published and was yanked.

- Initial release.

[3.3.0]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-3.3.0
[3.2.2]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-3.2.2
[3.2.1]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-3.2.1
[3.2.0]: https://github.com/guppy-rs/guppy/releases/tag/target-spec-3.2.0
Expand Down
7 changes: 5 additions & 2 deletions target-spec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ For more advanced usage, see `Platform` and `TargetSpec`.

### Minimum supported Rust version

The minimum supported Rust version (MSRV) is:
The minimum supported Rust version (MSRV) is **Rust 1.78**. The MSRV history is:

* For target-spec 3.0.x: **Rust 1.66**.
* For target-spec 3.1.x: **Rust 1.73**.
* For target-spec 3.2.x: **Rust 1.75**.
* For target-spec 3.3.x: **Rust 1.78**.

Within the 3.x series, MSRV bumps will be accompanied by a minor version update.
Within the 3.x series, MSRV bumps will be accompanied by a minor version
update. The last 6 months of stable Rust releases will be supported.

### Related crates

Expand Down
28 changes: 15 additions & 13 deletions target-spec/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub enum Error {
since = "3.3.0",
note = "this variant is no longer returned: instead, use CustomPlatformCreate"
)]
#[doc(hidden)]
CustomTripleCreate(CustomTripleCreateError),
/// An error occurred while creating a custom platform.
CustomPlatformCreate(CustomTripleCreateError),
Expand Down Expand Up @@ -318,26 +319,14 @@ impl error::Error for TripleParseErrorKind {
#[derive(Clone, Debug)]
#[non_exhaustive]
pub enum CustomTripleCreateError {
#[cfg(feature = "custom")]
/// An error occurred while deserializing serde data.
DeserializeJson {
/// The specified triple.
triple: String,

/// The input string that caused the error.
input: String,

/// The deserialization error that occurred.
error: std::sync::Arc<serde_json::Error>,
},

#[cfg(feature = "custom")]
/// Deprecated, and no longer used: instead, use [`Self::DeserializeJson`].
#[deprecated(
since = "3.3.0",
note = "this variant is no longer returned: instead, \
use DeserializeJson which also includes the input string"
)]
#[doc(hidden)]
Deserialize {
/// The specified triple.
triple: String,
Expand All @@ -351,6 +340,19 @@ pub enum CustomTripleCreateError {
/// Currently, this can only happen if a custom platform is deserialized from a
/// [`PlatformSummary`](crate::summaries::PlatformSummary),
Unavailable,

#[cfg(feature = "custom")]
/// An error occurred while deserializing serde data.
DeserializeJson {
/// The specified triple.
triple: String,

/// The input string that caused the error.
input: String,

/// The deserialization error that occurred.
error: std::sync::Arc<serde_json::Error>,
},
}

impl CustomTripleCreateError {
Expand Down
7 changes: 5 additions & 2 deletions target-spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@
//!
//! ## Minimum supported Rust version
//!
//! The minimum supported Rust version (MSRV) is:
//! The minimum supported Rust version (MSRV) is **Rust 1.78**. The MSRV history is:
//!
//! * For target-spec 3.0.x: **Rust 1.66**.
//! * For target-spec 3.1.x: **Rust 1.73**.
//! * For target-spec 3.2.x: **Rust 1.75**.
//! * For target-spec 3.3.x: **Rust 1.78**.
//!
//! Within the 3.x series, MSRV bumps will be accompanied by a minor version update.
//! Within the 3.x series, MSRV bumps will be accompanied by a minor version
//! update. The last 6 months of stable Rust releases will be supported.
//!
//! ## Related crates
//!
Expand Down
15 changes: 15 additions & 0 deletions tools/cargo-hakari/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to this project will be documented in this file.

## [0.9.34] - 2024-12-22

### Added

Added support for the upcoming [Cargo resolver version
3](https://doc.rust-lang.org/beta/cargo/reference/resolver.html#resolver-versions):
`resolver = "3"` in `.config/hakari.toml`. Resolver version 3 enables MSRV-aware
version resolution in Cargo.

The portion of dependency resolution that hakari works with (package and feature
resolution) happens after dependency versions have been resolved and
`Cargo.lock` is refreshed. This means that from hakari's perspective, resolver
version 3 is the same as version 2. You are welcome to keep using `resolver = "2"` if you like.

## [0.9.33] - 2024-10-06

### Fixed
Expand Down Expand Up @@ -321,6 +335,7 @@ This was tagged, but never released due to

Initial release.

[0.9.34]: https://github.com/guppy-rs/guppy/releases/tag/cargo-hakari-0.9.34
[0.9.33]: https://github.com/guppy-rs/guppy/releases/tag/cargo-hakari-0.9.33
[0.9.32]: https://github.com/guppy-rs/guppy/releases/tag/cargo-hakari-0.9.32
[0.9.31]: https://github.com/guppy-rs/guppy/releases/tag/cargo-hakari-0.9.31
Expand Down
19 changes: 19 additions & 0 deletions tools/hakari/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## [0.17.6] - 2024-12-22

### Added

Added support for the upcoming [Cargo resolver version
3](https://doc.rust-lang.org/beta/cargo/reference/resolver.html#resolver-versions).
Resolver version 3 enables MSRV-aware version resolution in Cargo.

The portion of dependency resolution that hakari works with (package and feature
resolution) happens after dependency versions have been resolved and
`Cargo.lock` is refreshed. This means that from hakari's perspective, resolver
version 3 is the same as version 2.

### Changed

- Builtin targets updated to Rust 1.83.
- MSRV updated to Rust 1.78.

## [0.17.5] - 2024-10-06

### Fixed
Expand Down Expand Up @@ -351,6 +369,7 @@ Internal updates for `cargo-hakari 0.9.8`.

Initial release.

[0.17.6]: https://github.com/guppy-rs/guppy/releases/tag/hakari-0.17.6
[0.17.5]: https://github.com/guppy-rs/guppy/releases/tag/hakari-0.17.5
[0.17.4]: https://github.com/guppy-rs/guppy/releases/tag/hakari-0.17.4
[0.17.3]: https://github.com/guppy-rs/guppy/releases/tag/hakari-0.17.3
Expand Down

0 comments on commit 12c55a6

Please sign in to comment.