From f2d71f5d7ce0dcf666a3fd0a7bc5e0fb12113e65 Mon Sep 17 00:00:00 2001 From: Mattias Wallin Date: Fri, 5 Jun 2026 14:48:43 +0200 Subject: [PATCH] Set minimum supported Rust version to 1.88 Rust 1.88 is the lowest version that compiles. By setting MSRV we can get warnings when using newer futures. For example `[T]::as_chunks()` introduces in Rust 1.88 is used. Rust Edition 2024 was introduced in Rust 1.85, so it can be used (when ready). --- Cargo.toml | 4 +++- test-libzstd-rs-sys/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4785d919..8a6a9887 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ exclude = [ "fuzz" ] [workspace.package] edition = "2021" +rust-version = "1.88" [package] name = "libzstd-rs-sys" @@ -13,7 +14,8 @@ repository = "https://github.com/trifectatechfoundation/libzstd-rs-sys" description = "a rust implementation of zstd compression and decompression" license = "BSD-3-Clause" publish = true -edition = "2021" +edition.workspace = true +rust-version.workspace = true autobins = false include = [ "Cargo.toml", diff --git a/test-libzstd-rs-sys/Cargo.toml b/test-libzstd-rs-sys/Cargo.toml index 5cc6e1b3..b0b1222f 100644 --- a/test-libzstd-rs-sys/Cargo.toml +++ b/test-libzstd-rs-sys/Cargo.toml @@ -8,7 +8,7 @@ edition.workspace = true # repository.workspace = true # homepage.workspace = true # publish.workspace = true -# rust-version.workspace = true +rust-version.workspace = true [dependencies.libzstd-rs-sys] path = ".."