From 6f4519a183ca43c3f08c855c57b1392f729a67ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=86=A0=E8=BE=B0?= Date: Thu, 21 May 2026 08:25:59 +0800 Subject: [PATCH] chore(cargo): declare MSRV via rust-version = "1.91" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rtk uses `str::floor_char_boundary()` (src/cmds/system/pipe_cmd.rs:140) which was stabilized in Rust 1.91.0. Without `rust-version` in Cargo.toml, packagers on older toolchains hit a confusing `use of unstable library feature` error from rustc. With this declaration, cargo gives the expected friendly diagnostic up-front: error: rustc 1.88.0 is not supported by the following packages: rtk@0.34.3 requires rustc 1.91 Verified locally by switching toolchains: - cargo +1.88 check → fails with the new clear MSRV error (intended) - cargo +1.93 fmt/clippy/test → 1909 passed, zero warnings Fixes #1402 --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 726a01709..f06266e63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "rtk" version = "0.34.3" edition = "2021" +rust-version = "1.91" authors = ["Patrick Szymkowiak"] description = "Rust Token Killer - High-performance CLI proxy to minimize LLM token consumption" license = "MIT"