From f6d16ee1efabbaef0fc9ee6e4af657138b289266 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 14 Mar 2024 09:42:37 +0100 Subject: [PATCH] Update version in docs --- api/rs/build/lib.rs | 4 ++-- api/rs/slint/README.md | 2 +- api/rs/slint/lib.rs | 4 ++-- api/rs/slint/mcu.md | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api/rs/build/lib.rs b/api/rs/build/lib.rs index db991fad130..ef63a8fe5dc 100644 --- a/api/rs/build/lib.rs +++ b/api/rs/build/lib.rs @@ -17,11 +17,11 @@ In your Cargo.toml: build = "build.rs" [dependencies] -slint = "1.4.0" +slint = "1.5.0" ... [build-dependencies] -slint-build = "1.4.0" +slint-build = "1.5.0" ``` In the `build.rs` file: diff --git a/api/rs/slint/README.md b/api/rs/slint/README.md index 0727f524207..d8f431f6435 100644 --- a/api/rs/slint/README.md +++ b/api/rs/slint/README.md @@ -23,7 +23,7 @@ In your `Cargo.toml` add: ```toml [dependencies] -slint = "1.4.0" +slint = "1.5.0" ``` And in your `main.rs`: diff --git a/api/rs/slint/lib.rs b/api/rs/slint/lib.rs index 6d2eb6d8450..caf342d3e39 100644 --- a/api/rs/slint/lib.rs +++ b/api/rs/slint/lib.rs @@ -71,11 +71,11 @@ build = "build.rs" edition = "2021" [dependencies] -slint = "1.4.0" +slint = "1.5.0" ... [build-dependencies] -slint-build = "1.4.0" +slint-build = "1.5.0" ``` Use the API of the slint-build crate in the `build.rs` file: diff --git a/api/rs/slint/mcu.md b/api/rs/slint/mcu.md index b20eb9350cf..9107a1aa864 100644 --- a/api/rs/slint/mcu.md +++ b/api/rs/slint/mcu.md @@ -29,7 +29,7 @@ Start by adding a dependency to the `slint` and the `slint-build` crates to your Start with the `slint` crate like this: ```sh -cargo add slint@1.4.0 --no-default-features --features "compat-1-2 unsafe-single-threaded libm" +cargo add slint@1.5.0 --no-default-features --features "compat-1-2 unsafe-single-threaded libm" ``` The default features of the `slint` crate are tailored towards hosted environments and includes the "std" feature. In bare metal environments, @@ -51,7 +51,7 @@ This is the default when using the Rust 2021 Edition, but not if you use a works Then add the `slint-build` crate as a build dependency: ```sh -cargo add --build slint-build@1.4.0 +cargo add --build slint-build@1.5.0 ``` For reference: These are the relevant parts of your `Cargo.toml` file, @@ -67,11 +67,11 @@ edition = "2021" ## ... your other dependencies [dependencies.slint] -version = "1.4.0" +version = "1.5.0" default-features = false features = ["compat-1-2", "unsafe-single-threaded", "libm"] [build-dependencies] -slint-build = "1.4.0" +slint-build = "1.5.0" ``` ## Changes to `build.rs`