Update a few docs to 1.1.0

This commit is contained in:
Olivier Goffart 2023-06-26 12:35:09 +02:00
parent 5fde19d111
commit 2a2e38315e
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.0.0"
slint = "1.1.0"
...
[build-dependencies]
slint-build = "1.0.0"
slint-build = "1.1.0"
```
In the `build.rs` file:

View file

@ -22,7 +22,7 @@ In your `Cargo.toml` add:
```toml
[dependencies]
slint = "1.0.0"
slint = "1.1.0"
```
And in your `main.rs`:

View file

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

View file

@ -28,7 +28,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.0.0 --no-default-features --features "compat-1-0 unsafe-single-threaded libm"
cargo add slint@1.1.0 --no-default-features --features "compat-1-0 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,
@ -50,7 +50,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.0.0
cargo add --build slint-build@1.1.0
```
For reference: These are the relevant parts of your `Cargo.toml` file,
@ -66,11 +66,11 @@ edition = "2021"
## ... your other dependencies
[dependencies.slint]
version = "1.0.0"
version = "1.1.0"
default-features = false
features = ["compat-1-0", "unsafe-single-threaded", "libm"]
[build-dependencies]
slint-build = "1.0.0"
slint-build = "1.1.0"
```
## Changes to `build.rs`