Skip to content

Commit

Permalink
Bump MSRV to 1.82
Browse files Browse the repository at this point in the history
Fixes #7254
  • Loading branch information
tronical committed Jan 14, 2025
1 parent d17d5dd commit 85de520
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 18 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, macos-14, windows-2022]
rust_version: [stable, "1.77"]
rust_version: [stable, "1.82"]
include:
- os: windows-2022
extra_args: "--exclude ffmpeg --exclude gstreamer-player"
Expand All @@ -43,8 +43,8 @@ jobs:
rust_version: "nightly"
exclude:
- os: macos-14
rust_version: "1.77"
# We already test 1.77 and nightly. Stable is in the middle and already covered by other jobs
rust_version: "1.82"
# We already test 1.82 and nightly. Stable is in the middle and already covered by other jobs
- os: ubuntu-22.04
rust_version: "stable"

Expand Down Expand Up @@ -78,13 +78,13 @@ jobs:
with:
toolchain: ${{ matrix.rust_version }}
key: x-v3
- name: Pin dependencies to make it build with our MSRV
if: matrix.rust_version == '1.77'
shell: bash
run: |
if [ ! -f ./Cargo.lock ]; then
cargo update -p home --precise 0.5.9
fi
# - name: Pin dependencies to make it build with our MSRV
# if: matrix.rust_version == '1.82'
# shell: bash
# run: |
# if [ ! -f ./Cargo.lock ]; then
# cargo update -p home --precise 0.5.9
# fi
- name: Run tests (not qt)
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
env:
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
matrix:
include:
- os: macos-14
rust_version: "1.77"
rust_version: "1.82"
- os: windows-2022
rust_version: "nightly"
- os: ubuntu-22.04
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
# Changelog
All notable changes to this project are documented in this file.

## 1.10.0 - Unreleased

### General

- Minimum Supported Rust Version (MSRV) is 1.82.

## 1.9.2 - 2025-01-13

### General
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ homepage = "https://slint.dev"
keywords = ["gui", "toolkit", "graphics", "design", "ui"]
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0"
repository = "https://github.com/slint-ui/slint"
rust-version = "1.77"
rust-version = "1.82"
version = "1.10.0"

[workspace.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion api/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FetchContent_Declare(
FetchContent_MakeAvailable(Corrosion)

list(PREPEND CMAKE_MODULE_PATH ${Corrosion_SOURCE_DIR}/cmake)
find_package(Rust 1.77 REQUIRED MODULE)
find_package(Rust 1.82 REQUIRED MODULE)

option(BUILD_SHARED_LIBS "Build Slint as shared library" ON)
option(SLINT_FEATURE_COMPILER "Enable support for compiling .slint files to C++ ahead of time" ON)
Expand Down
2 changes: 1 addition & 1 deletion api/cpp/docs/cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ In the next section you will learn how to use the installed library in your appl
First you need to install the prerequisites:

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

You can either choose to compile Slint from source along with your application or include Slint as an external CMake package.
Expand Down
2 changes: 1 addition & 1 deletion api/cpp/docs/mcu/generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ following generic instructions on what's needed to compile and use Slint.
## Prerequisites

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

* A C++ cross-compiler compiler that supports C++20.
Expand Down
2 changes: 1 addition & 1 deletion api/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You need to install the following components:

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

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

Expand Down
2 changes: 1 addition & 1 deletion api/node/cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To use Slint with Deno, ensure the following programs are installed:
Slint-node comes with pre-built binaries for macOS, Linux, and Windows. If you'd like to use Slint-node on a system
without pre-built binaries, you need to additional software:

* **[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,
* **[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,
see <https://github.com/slint-ui/slint/blob/master/docs/building.md#prerequisites>.

## Getting Started (Node.js)
Expand Down
2 changes: 1 addition & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This page explains how to build and test Slint.
### Installing Rust

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

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

0 comments on commit 85de520

Please sign in to comment.