-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dfb267
commit 4b4deb3
Showing
6 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
name = "diplomat_core" | ||
description = "Shared utilities between Diplomat macros and code generation" | ||
version = "0.8.0" | ||
rust-version.workspace = true | ||
authors = [ | ||
"Shadaj Laddad <[email protected]>", | ||
"Manish Goregaokar <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Minimum Supported Rust Versions policy | ||
|
||
The diplomat libraries that end up as dependencies of diplomat-using crates (`diplomat`, `diplomat_core`, `diplomat-runtime`) attempt to maintain a reasonable Minimum Supported Rust Version policy for its users. | ||
|
||
At the moment, the primary user of Diplomat is [ICU4X](https://github.com/unicode-org/icu4x), and as such Diplomat matches ICU4X's [MSRV polic | ||
y], with a tweak: | ||
|
||
- Diplomat releases must have an MSRV that is 4 or more releases before the current stable Rust (the version that Rust will be when Diplomat is released) | ||
- Diplomat maintainers may upgrade MSRV to something that will be 6 or more releases before current stable Rust without needing justification. | ||
- Upgrading MSRV to something between 4 and 6 releases before current stable Rust requires justification listing the concrete benefit Diplomat gets from this change. | ||
- When a Diplomat MSRV update on Diplomat `main` will affect MSRV on ICU4X `main`, ICU4X must sign off on the MSRV update, either by policy, or by discussion when needed. | ||
|
||
When it comes to dependencies, Diplomat's MSRV implies that _some_ combination of dependency versions satisfies that MSRV. This combination can usually be found in Diplomat's lockfile, which is tested by CI. | ||
|
||
|
||
The tool library, `diplomat-tool`, does not maintain any MSRV. | ||
|
||
|
||
Diplomat is open to tweaking this policy to support the needs of other downstream users. | ||
|
||
|
||
[MSRV policy]: https://github.com/unicode-org/icu4x/blob/main/documents/process/rust_versions.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
name = "diplomat" | ||
description = "The diplomat FFI generation macro" | ||
version = "0.8.0" | ||
rust-version.workspace = true | ||
authors = [ | ||
"Shadaj Laddad <[email protected]>", | ||
"Manish Goregaokar <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
name = "diplomat-runtime" | ||
description = "Common runtime utilities used by diplomat codegen" | ||
version = "0.8.1" | ||
rust-version.workspace = true | ||
authors = [ | ||
"Shadaj Laddad <[email protected]>", | ||
"Manish Goregaokar <[email protected]>", | ||
|