workspace: set rust-version (MSRV)
This declares the minimum supported Rust version, independently of the `rust-toolchain.toml` file, which specifies the Rust version and toolchain components the crate/workspace should be built with. The MSRV affects other crates that depend on anything in this workspace, but the toolchain file does not seem to affect them. This means the MSRV is useful for those who build or develop dependents. Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
parent
9f2c4e3941
commit
105b65c2ac
21
Cargo.toml
21
Cargo.toml
|
|
@ -1,5 +1,4 @@
|
|||
[workspace]
|
||||
package.version = "0.9.0"
|
||||
members = [
|
||||
"radicle",
|
||||
"radicle-cob",
|
||||
|
|
@ -31,11 +30,23 @@ default-members = [
|
|||
]
|
||||
resolver = "2"
|
||||
|
||||
[profile.container]
|
||||
inherits = "release"
|
||||
debug = true
|
||||
incremental = false
|
||||
[workspace.package]
|
||||
version = "0.9.0"
|
||||
|
||||
# Even though some crates in this workspace may build fine
|
||||
# on a lower version, we set it here and inherit in all
|
||||
# crates. This is to simplify maintenance. As of 2025-05-13
|
||||
# we do not have the capacity to think about `rust-version`
|
||||
# *per crate*. If anyone ever wants to set it to a different
|
||||
# value per crate, this is of course possible. We're waiting
|
||||
# for the day it makes a difference…
|
||||
rust-version = "1.81.0"
|
||||
|
||||
[workspace.lints]
|
||||
clippy.type_complexity = "allow"
|
||||
clippy.enum_variant_names = "allow"
|
||||
|
||||
[profile.container]
|
||||
inherits = "release"
|
||||
debug = true
|
||||
incremental = false
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ edition = "2021"
|
|||
categories = ["development-tools::testing"]
|
||||
keywords = ["cli", "test", "command"]
|
||||
readme = "README.md"
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
escargot = { version = "0.5.7" }
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ version = "0.12.1"
|
|||
authors = ["cloudhead <cloudhead@radicle.xyz>"]
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
rust-version.workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "rad"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ authors = [
|
|||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
keywords = ["radicle", "cob", "cobs"]
|
||||
rust-version.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ name = "radicle-crdt"
|
|||
version = "0.1.0"
|
||||
license = "MIT OR Apache-2.0"
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[features]
|
||||
test = ["fastrand", "qcheck"]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ authors = [
|
|||
"Fintan Halpenny <fintan.halpenny@gmail.com>",
|
||||
]
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[features]
|
||||
test = ["fastrand", "qcheck"]
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ license = "MIT OR Apache-2.0"
|
|||
authors = ["cloudhead <cloudhead@radicle.xyz>"]
|
||||
version = "0.10.0"
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
fastrand = { version = "2.0.0" }
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ license = "MIT OR Apache-2.0"
|
|||
version = "0.10.0"
|
||||
authors = ["Fintan Halpenny <fintan.halpenny@gmail.com>"]
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
bstr = { version = "1.3" }
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ version = "0.10.0"
|
|||
authors = ["cloudhead <cloudhead@radicle.xyz>"]
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
rust-version.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["systemd"]
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ version = "0.10.0"
|
|||
authors = ["cloudhead <cloudhead@radicle.xyz>"]
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
thiserror = { version = "1" }
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaH
|
|||
license = "MIT OR Apache-2.0"
|
||||
edition = "2021"
|
||||
version = "0.11.0"
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
crossbeam-channel = { version = "0.5.6" }
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ authors = [
|
|||
"cloudhead <cloudhead@radicle.xyz>"
|
||||
]
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
byteorder = "1.4"
|
||||
|
|
|
|||
|
|
@ -6,3 +6,4 @@ repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaH
|
|||
license = "MIT OR Apache-2.0"
|
||||
edition = "2021"
|
||||
version = "0.9.0"
|
||||
rust-version.workspace = true
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ license = "MIT OR Apache-2.0"
|
|||
version = "0.12.0"
|
||||
authors = ["cloudhead <cloudhead@radicle.xyz>"]
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["git2"]
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ license = "MIT OR Apache-2.0"
|
|||
version = "0.9.0"
|
||||
authors = ["Alexis Sellier <alexis@radicle.xyz>"]
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
anyhow = { version = "1" }
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ license = "MIT OR Apache-2.0"
|
|||
version = "0.14.0"
|
||||
authors = ["cloudhead <cloudhead@radicle.xyz>"]
|
||||
edition = "2021"
|
||||
rust-version.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue