Update MSRV to rust 1.59 in the CI and documentation

This is only required for dependencies of slint-build and xtask.
So this is not enforced yet and will still work with 1.56 with
for C++ or when not using slint-build.
This commit is contained in:
Olivier Goffart 2022-04-14 14:42:52 +02:00 committed by Olivier Goffart
parent e85e69fda0
commit 452bc2a696
7 changed files with 6 additions and 7 deletions

View file

@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macOS-11, windows-2019]
rust_version: [stable, 1.56]
rust_version: [stable, 1.59]
runs-on: ${{ matrix.os }}
steps:

View file

@ -7,6 +7,7 @@ All notable changes to this project are documented in this file.
- On wasm, the input event are handled via a hidden `<input>` element, allowing the keyboard
to show on mobile platform
- The size of the window is kept when reloading a window in the preview (instead of being reset to the preferred size)
- Minimum rust version is now 1.59
### Added

View file

@ -30,7 +30,7 @@ The recommended and most flexible way to use the C++ API is to build Slint from
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.56 or newer. You can check which version you have installed
have Rust installed, make sure that it's at least version 1.59 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.
* **[cmake](https://cmake.org/download/)** (3.19 or newer)
* A C++ compiler that supports C++20 (e.g., **MSVC 2019 16.6** on Windows)

View file

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

View file

@ -6,8 +6,6 @@ This guide lists all API incompatible changes between major versions and describ
## Migrating from Version 0.1.x to 0.2.0
In 0.2.0 we have increased the minimum version of rust. You need to have rust compiler version >= 1.56 installed.
### Models
#### `Model::row_data`

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.56 or newer. You can check which version you have installed
have Rust installed, make sure that it's at least version 1.59 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.19.
We do not provide binaries of Slint yet, so we will use the CMake integration that will automatically build
the tools and library from source. Since it is implemented in the Rust programming language, this means that
you also need to install a Rust compiler (1.56). You can easily install a Rust compiler
you also need to install a Rust compiler (1.59). You can easily install a Rust compiler
following the instruction from [the Rust website](https://www.rust-lang.org/learn/get-started).
We are going to use `cmake`'s builtin FetchContent module to fetch the source code of Slint.