Skip to content

Commit

Permalink
Update version in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Mar 14, 2024
1 parent 400b6ad commit f6d16ee
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions api/rs/build/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion api/rs/slint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ In your `Cargo.toml` add:

```toml
[dependencies]
slint = "1.4.0"
slint = "1.5.0"
```

And in your `main.rs`:
Expand Down
4 changes: 2 additions & 2 deletions api/rs/slint/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions api/rs/slint/mcu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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`
Expand Down

0 comments on commit f6d16ee

Please sign in to comment.