Update version in docs

This commit is contained in:
Olivier Goffart 2024-12-18 13:07:58 +01:00
parent f90da1b493
commit 995735ca12
4 changed files with 9 additions and 9 deletions

View file

@ -17,11 +17,11 @@ In your Cargo.toml:
build = "build.rs"
[dependencies]
slint = "1.8.0"
slint = "1.9.0"
...
[build-dependencies]
slint-build = "1.8.0"
slint-build = "1.9.0"
```
In the `build.rs` file:

View file

@ -24,7 +24,7 @@ In your `Cargo.toml` add:
```toml
[dependencies]
slint = "1.8.0"
slint = "1.9.0"
```
And in your `main.rs`:

View file

@ -74,11 +74,11 @@ build = "build.rs"
edition = "2021"
[dependencies]
slint = "1.8.0"
slint = "1.9.0"
...
[build-dependencies]
slint-build = "1.8.0"
slint-build = "1.9.0"
```
Use the API of the slint-build crate in the `build.rs` file:

View file

@ -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.8.0 --no-default-features --features "compat-1-2 unsafe-single-threaded libm renderer-software"
cargo add slint@1.9.0 --no-default-features --features "compat-1-2 unsafe-single-threaded libm renderer-software"
```
The default features of the `slint` crate are tailored towards hosted environments and includes the "std" feature. In bare metal environments,
@ -52,7 +52,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.8.0
cargo add --build slint-build@1.9.0
```
For reference: These are the relevant parts of your `Cargo.toml` file,
@ -68,11 +68,11 @@ edition = "2021"
## ... your other dependencies
[dependencies.slint]
version = "1.7.0"
version = "1.8.0"
default-features = false
features = ["compat-1-2", "unsafe-single-threaded", "libm", "renderer-software"]
[build-dependencies]
slint-build = "1.8.0"
slint-build = "1.9.0"
```
## Changes to `build.rs`