Skip to content

Commit 401c436

Browse files
authored
Set util MSRV to 1.82, add util MSRV policy (#7125)
fixes #7114 Based on WG conclusion in #7066 (comment)
1 parent 79316c2 commit 401c436

File tree

19 files changed

+20
-22
lines changed

19 files changed

+20
-22
lines changed

documents/process/rust_versions.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ The main ICU4X library does not use nightly; however nightly is required for bui
1818

1919
Our "utils" crates (yoke, zerovec, zerofrom, etc) are not versioned alongside ICU4X: they may have major version updates between minor ICU4X releases, and they may choose to have minor version updates between major ICU4X releases.
2020

21-
By default, these crates have the same MSRV as their corresponding ICU4X release, however at times we may give them a lower MSRV for a wider range of compatability.
21+
We intend for these crates to gain wider adoption than just ICU4X. As such, these crates don't change their MSRV unless there is a need for it.
2222

23-
This is done on an as-requested basis and is best-effort.
24-
25-
Currently, `zerofrom` is the only crate with a lower MSRV.
23+
When an ICU4X developer needs to use a new Rust API/feature in such a crate, they may update the MSRV to any Rust version at least six Rust versions before the current stable Rust (and also less than or equal to the current ICU4X MSRV).
2624

2725
## For ICU4X developers
2826

utils/bies/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ homepage.workspace = true
1313
include.workspace = true
1414
license.workspace = true
1515
repository.workspace = true
16-
rust-version.workspace = true
16+
rust-version = "1.82"
1717

1818
[package.metadata.workspaces]
1919
independent = true

utils/calendrical_calculations/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ authors.workspace = true
1818
edition.workspace = true
1919
include.workspace = true
2020
repository.workspace = true
21-
rust-version.workspace = true
21+
rust-version = "1.82"
2222

2323

2424
# This is a special exception: The algorithms in this crate are based on "Calendrical Calculations" by Reingold and Dershowitz

utils/crlify/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ edition.workspace = true
1414
include.workspace = true
1515
license.workspace = true
1616
repository.workspace = true
17-
rust-version.workspace = true
17+
rust-version = "1.82"
1818

1919
[package.metadata.workspaces]
2020
independent = true

utils/databake/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ edition.workspace = true
1414
include.workspace = true
1515
license.workspace = true
1616
repository.workspace = true
17-
rust-version.workspace = true
17+
rust-version = "1.82"
1818

1919
[package.metadata.workspaces]
2020
independent = true

utils/databake/derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ edition.workspace = true
1414
include.workspace = true
1515
license.workspace = true
1616
repository.workspace = true
17-
rust-version.workspace = true
17+
rust-version = "1.82"
1818

1919
[package.metadata.workspaces]
2020
independent = true

utils/env_preferences/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "env_preferences"
77
version = "0.1.0"
88
publish = false
99

10-
rust-version.workspace = true
10+
rust-version = "1.82"
1111
authors.workspace = true
1212
edition.workspace = true
1313
repository.workspace = true

utils/fixed_decimal/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ edition.workspace = true
1313
include.workspace = true
1414
license.workspace = true
1515
repository.workspace = true
16-
rust-version.workspace = true
16+
rust-version = "1.82"
1717

1818
[package.metadata.workspaces]
1919
independent = true

utils/ixdtf/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ homepage.workspace = true
1414
include.workspace = true
1515
license.workspace = true
1616
repository.workspace = true
17-
rust-version.workspace = true
17+
rust-version = "1.82"
1818

1919
[package.metadata.workspaces]
2020
independent = true

utils/litemap/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ edition.workspace = true
1414
include.workspace = true
1515
license.workspace = true
1616
repository.workspace = true
17-
rust-version.workspace = true
17+
rust-version = "1.82"
1818

1919
[package.metadata.workspaces]
2020
independent = true

0 commit comments

Comments
 (0)