mirror of
https://github.com/rui314/mold.git
synced 2026-11-08 17:48:41 -10:00
Declare the minimum supported Rust version
mold needs Rust 1.95 for std::hint::cold_path and the atomic update methods, while its dependencies need only 1.85. Declaring it makes Cargo reject older toolchains with a clear message before building, and lets the resolver avoid dependency versions that need a newer rustc.
This commit is contained in:
1 parent
e10a25f478
commit
6bdd637973
23 files changed
+24
No files matched your search
@@ -2,6 +2,7 @@
|
||||
name = "mold"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "A high-performance ELF linker, rewritten in Rust"
|
||||
license.workspace = true
|
||||
# tests/lib.rs belongs to the mold-tests workspace crate.
|
||||
@@ -18,6 +19,7 @@ default-members = [".", "cli", "arch/*", "tests"]
|
||||
[workspace.package]
|
||||
version = "2.42.1"
|
||||
edition = "2024"
|
||||
rust-version = "1.95"
|
||||
license = "MIT"
|
||||
|
||||
[workspace.dependencies]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-arm32"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for arm32"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-arm32be"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for arm32be"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-arm64"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for arm64"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-arm64be"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for arm64be"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-i386"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for i386"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-loongarch32"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for loongarch32"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-loongarch64"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for loongarch64"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-m68k"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for m68k"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-ppc32"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for ppc32"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-ppc64v1"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for ppc64v1"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-ppc64v2"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for ppc64v2"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-riscv32"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for riscv32"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-riscv32be"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for riscv32be"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-riscv64"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for riscv64"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-riscv64be"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for riscv64be"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-s390x"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for s390x"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-sh4"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for sh4"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-sh4be"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for sh4be"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-sparc64"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for sparc64"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-target-x86_64"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold linker instantiated for x86_64"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-cli"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "The mold executable"
|
||||
license.workspace = true
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "mold-tests"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
description = "Test support for mold's shell test suite"
|
||||
license.workspace = true
|
||||
publish = false
|
||||
|
||||
Reference in new issue
Block a user