Set MSRV to 1.66

This commit is contained in:
Olivier Goffart 2023-02-15 10:32:41 +01:00 committed by Olivier Goffart
parent 8934bf3bf5
commit fd6c80a590
7 changed files with 8 additions and 7 deletions

View file

@ -21,13 +21,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2022]
rust_version: [stable, "1.64"]
rust_version: [stable, "1.66"]
include:
- os: windows-2022
extra_args: "--exclude slint-node --exclude test-driver-nodejs"
exclude:
- os: macos-11
rust_version: "1.64"
rust_version: "1.66"
runs-on: ${{ matrix.os }}

View file

@ -5,6 +5,7 @@ All notable changes to this project are documented in this file.
### Changed
- Minimum Rust version is now 1.66.
- Deprecated functions and enums were removed
- `PointerEventButton::None` was renamed `PointerEventButton::Other`
- In the Rust API, more functions now return Result, and the return value needs to be unwrap()'ed

View file

@ -83,7 +83,7 @@ default-members = [
resolver="2"
[workspace.package]
rust-version = "1.64"
rust-version = "1.66"
[profile.release]
lto = true

View file

@ -16,7 +16,7 @@ FetchContent_Declare(
FetchContent_MakeAvailable(Corrosion)
list(PREPEND CMAKE_MODULE_PATH ${Corrosion_SOURCE_DIR}/cmake)
find_package(Rust 1.64 REQUIRED MODULE)
find_package(Rust 1.66 REQUIRED MODULE)
option(SLINT_FEATURE_COMPILER "Enable support for compiling .slint files to C++ ahead of time" ON)

View file

@ -63,4 +63,4 @@ cargo run --release --bin printerdemo
### Minimum Supported Rust Version
This crate's minimum supported `rustc` version is 1.64.
This crate's minimum supported `rustc` version is 1.66.

View file

@ -7,7 +7,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.64 or newer. You can check which version you have installed
have Rust installed, make sure that it's at least version 1.66 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.

View file

@ -6,7 +6,7 @@ In this tutorial, we use C++ as the host programming language. We also support o
You will need a development environment that can compile C++20 with CMake 3.21.
We don't provide binaries of Slint yet, so we will use the CMake integration that will automatically build
the tools and library from source. Since it's implemented in the Rust programming language, this means that
you also need to install a Rust compiler (1.64). You can easily install a Rust compiler
you also need to install a Rust compiler (1.66 or newer). You can easily install a Rust compiler
following the instruction from [the Rust website](https://www.rust-lang.org/learn/get-started).
We're going to use `cmake`'s builtin FetchContent module to fetch the source code of Slint.