From f9f897b32cad3bf10fcc06774887254922eaea74 Mon Sep 17 00:00:00 2001 From: main Date: Sun, 14 Jun 2026 23:49:59 -0400 Subject: Scrub hardcoded Rust toolchain defaults Teach rust-bootstrap to use the latest system Rust toolchain, derive rust-version only from active rustc when needed, and initialize Git before applying the fresh template in an empty directory. --- template/fresh/Cargo.toml | 5 +++-- template/fresh/crates/app/Cargo.toml | 1 - template/fresh/rust-toolchain.toml | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'template/fresh') diff --git a/template/fresh/Cargo.toml b/template/fresh/Cargo.toml index ee35453..57d0dd9 100644 --- a/template/fresh/Cargo.toml +++ b/template/fresh/Cargo.toml @@ -1,4 +1,6 @@ -# Replace the member list, package metadata, and toolchain/MSRV values deliberately. +# Replace the member list and package metadata deliberately. +# If the target records `rust-version`, derive it from the latest system +# `rustc --version`; do not copy a Rust version from this template. [workspace] members = ["crates/app"] @@ -7,7 +9,6 @@ resolver = "3" [workspace.package] edition = "2024" license = "MIT" -rust-version = "1.90" version = "0.1.0" [workspace.lints.rust] diff --git a/template/fresh/crates/app/Cargo.toml b/template/fresh/crates/app/Cargo.toml index ce1808a..51c7dac 100644 --- a/template/fresh/crates/app/Cargo.toml +++ b/template/fresh/crates/app/Cargo.toml @@ -2,7 +2,6 @@ name = "app" edition.workspace = true license.workspace = true -rust-version.workspace = true version.workspace = true [lints] diff --git a/template/fresh/rust-toolchain.toml b/template/fresh/rust-toolchain.toml index 66f329f..52f2d51 100644 --- a/template/fresh/rust-toolchain.toml +++ b/template/fresh/rust-toolchain.toml @@ -1,4 +1,7 @@ +# Non-versioned on purpose: use the active system rustup channel, not a stale +# Rust version copied from this starter. + [toolchain] -channel = "1.90.0" +channel = "stable" profile = "minimal" components = ["clippy", "rustfmt"] -- cgit v1.2.3