diff options
| author | main <main@swarm.moe> | 2026-06-14 23:49:59 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-06-14 23:49:59 -0400 |
| commit | f9f897b32cad3bf10fcc06774887254922eaea74 (patch) | |
| tree | f90d4800c379a6c20371a05d550c6439c3984df2 /template/fresh | |
| parent | 4735637ead09c4e8d4b9a0409d7ea2538eb9cb40 (diff) | |
| download | rust_starter-f9f897b32cad3bf10fcc06774887254922eaea74.zip | |
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.
Diffstat (limited to 'template/fresh')
| -rw-r--r-- | template/fresh/Cargo.toml | 5 | ||||
| -rw-r--r-- | template/fresh/crates/app/Cargo.toml | 1 | ||||
| -rw-r--r-- | template/fresh/rust-toolchain.toml | 5 |
3 files changed, 7 insertions, 4 deletions
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"] |