Skip to content

Commit 43db58a

Browse files
committed
Bump MSRV to 1.82
Fixes #7254
1 parent d17d5dd commit 43db58a

File tree

9 files changed

+24
-18
lines changed

9 files changed

+24
-18
lines changed

.github/workflows/ci.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
os: [ubuntu-22.04, macos-14, windows-2022]
33-
rust_version: [stable, "1.77"]
33+
rust_version: [stable, "1.82"]
3434
include:
3535
- os: windows-2022
3636
extra_args: "--exclude ffmpeg --exclude gstreamer-player"
@@ -43,8 +43,8 @@ jobs:
4343
rust_version: "nightly"
4444
exclude:
4545
- os: macos-14
46-
rust_version: "1.77"
47-
# We already test 1.77 and nightly. Stable is in the middle and already covered by other jobs
46+
rust_version: "1.82"
47+
# We already test 1.82 and nightly. Stable is in the middle and already covered by other jobs
4848
- os: ubuntu-22.04
4949
rust_version: "stable"
5050

@@ -78,13 +78,13 @@ jobs:
7878
with:
7979
toolchain: ${{ matrix.rust_version }}
8080
key: x-v3
81-
- name: Pin dependencies to make it build with our MSRV
82-
if: matrix.rust_version == '1.77'
83-
shell: bash
84-
run: |
85-
if [ ! -f ./Cargo.lock ]; then
86-
cargo update -p home --precise 0.5.9
87-
fi
81+
# - name: Pin dependencies to make it build with our MSRV
82+
# if: matrix.rust_version == '1.82'
83+
# shell: bash
84+
# run: |
85+
# if [ ! -f ./Cargo.lock ]; then
86+
# cargo update -p home --precise 0.5.9
87+
# fi
8888
- name: Run tests (not qt)
8989
run: cargo test --verbose --all-features --workspace ${{ matrix.extra_args }} --exclude slint-node --exclude pyslint --exclude test-driver-node --exclude slint-node --exclude test-driver-nodejs --exclude test-driver-cpp --exclude mcu-board-support --exclude printerdemo_mcu --exclude uefi-demo --exclude slint-cpp --exclude slint-python -- --skip=_qt::t
9090
env:
@@ -233,7 +233,7 @@ jobs:
233233
matrix:
234234
include:
235235
- os: macos-14
236-
rust_version: "1.77"
236+
rust_version: "1.82"
237237
- os: windows-2022
238238
rust_version: "nightly"
239239
- os: ubuntu-22.04

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# Changelog
44
All notable changes to this project are documented in this file.
55

6+
## 1.10.0 - Unreleased
7+
8+
### General
9+
10+
- Minimum Supported Rust Version (MSRV) is 1.82.
11+
612
## 1.9.2 - 2025-01-13
713

814
### General

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ homepage = "https://slint.dev"
105105
keywords = ["gui", "toolkit", "graphics", "design", "ui"]
106106
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0"
107107
repository = "https://github.com/slint-ui/slint"
108-
rust-version = "1.77"
108+
rust-version = "1.82"
109109
version = "1.10.0"
110110

111111
[workspace.dependencies]

api/cpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FetchContent_Declare(
1818
FetchContent_MakeAvailable(Corrosion)
1919

2020
list(PREPEND CMAKE_MODULE_PATH ${Corrosion_SOURCE_DIR}/cmake)
21-
find_package(Rust 1.77 REQUIRED MODULE)
21+
find_package(Rust 1.82 REQUIRED MODULE)
2222

2323
option(BUILD_SHARED_LIBS "Build Slint as shared library" ON)
2424
option(SLINT_FEATURE_COMPILER "Enable support for compiling .slint files to C++ ahead of time" ON)

api/cpp/docs/cmake.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ In the next section you will learn how to use the installed library in your appl
4949
First you need to install the prerequisites:
5050

5151
* Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). If you already
52-
have Rust installed, make sure that it's at least version 1.77 or newer. You can check which version you have installed
52+
have Rust installed, make sure that it's at least version 1.82 or newer. You can check which version you have installed
5353
by running `rustc --version`. Once this is done, you should have the `rustc` compiler and the `cargo` build system installed in your path.
5454

5555
You can either choose to compile Slint from source along with your application or include Slint as an external CMake package.

api/cpp/docs/mcu/generic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ following generic instructions on what's needed to compile and use Slint.
99
## Prerequisites
1010

1111
* Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). If you already
12-
have Rust installed, make sure that it's at least version 1.77 or newer. You can check which version you have installed
12+
have Rust installed, make sure that it's at least version 1.82 or newer. You can check which version you have installed
1313
by running `rustc --version`. Once this is done, you should have the `rustc` compiler and the `cargo` build system installed in your path.
1414

1515
* A C++ cross-compiler compiler that supports C++20.

api/node/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You need to install the following components:
3333

3434
* **[Node.js](https://nodejs.org/download/release/)** (v16. or newer)
3535
* **[pnpm](https://www.pnpm.io/)**
36-
* **[Rust compiler](https://www.rust-lang.org/tools/install)** (1.77 or newer)
36+
* **[Rust compiler](https://www.rust-lang.org/tools/install)** (1.82 or newer)
3737

3838
You will also need a few more dependencies, see <https://github.com/slint-ui/slint/blob/master/docs/building.md#prerequisites>
3939

api/node/cover.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To use Slint with Deno, ensure the following programs are installed:
3434
Slint-node comes with pre-built binaries for macOS, Linux, and Windows. If you'd like to use Slint-node on a system
3535
without pre-built binaries, you need to additional software:
3636

37-
* **[Rust compiler](https://www.rust-lang.org/tools/install)** (1.77 or newer) * Depending on your operating system, you may need additional components. For a list of required system libraries,
37+
* **[Rust compiler](https://www.rust-lang.org/tools/install)** (1.82 or newer) * Depending on your operating system, you may need additional components. For a list of required system libraries,
3838
see <https://github.com/slint-ui/slint/blob/master/docs/building.md#prerequisites>.
3939

4040
## Getting Started (Node.js)

docs/building.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This page explains how to build and test Slint.
99
### Installing Rust
1010

1111
Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). If you already
12-
have Rust installed, make sure that it's at least version 1.77 or newer. You can check which version you have installed
12+
have Rust installed, make sure that it's at least version 1.82 or newer. You can check which version you have installed
1313
by running `rustc --version`.
1414

1515
Once this is done, you should have the `rustc` compiler and the `cargo` build system installed in your path.

0 commit comments

Comments
 (0)