mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Update version number in docs
This commit is contained in:
parent
3d2daf6073
commit
17aa0d7203
6 changed files with 8 additions and 8 deletions
|
@ -17,11 +17,11 @@ In your Cargo.toml:
|
|||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
slint = "0.3.0"
|
||||
slint = "0.3.1"
|
||||
...
|
||||
|
||||
[build-dependencies]
|
||||
slint-build = "0.3.0"
|
||||
slint-build = "0.3.1"
|
||||
```
|
||||
|
||||
In the `build.rs` file:
|
||||
|
|
|
@ -22,7 +22,7 @@ In your `Cargo.toml` add:
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
slint = "0.3.0"
|
||||
slint = "0.3.1"
|
||||
```
|
||||
|
||||
And in your `main.rs`:
|
||||
|
|
|
@ -72,11 +72,11 @@ build = "build.rs"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
slint = "0.3.0"
|
||||
slint = "0.3.1"
|
||||
...
|
||||
|
||||
[build-dependencies]
|
||||
slint-build = "0.3.0"
|
||||
slint-build = "0.3.1"
|
||||
```
|
||||
|
||||
Use the API of the slint-build crate in the `build.rs` file:
|
||||
|
|
|
@ -37,7 +37,7 @@ default-features = false
|
|||
features = ["compat-0-3-0", "unsafe-single-threaded", "libm"]
|
||||
|
||||
[build-dependencies]
|
||||
slint-build = "0.3.0"
|
||||
slint-build = "0.3.1"
|
||||
```
|
||||
|
||||
The default features of the `slint` crate are tailored towards hosted environments and includes the "std" feature. In bare metal environments,
|
||||
|
|
|
@ -5,7 +5,7 @@ The tiles in the game should have a random placement. We'll need to add the `ran
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
slint = "0.3.0"
|
||||
slint = "0.3.1"
|
||||
rand = "0.8" # Added
|
||||
```
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ Then we edit `Cargo.toml` to add the slint dependency:
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
slint = "0.3.0"
|
||||
slint = "0.3.1"
|
||||
```
|
||||
|
||||
Finally we copy the hello world program from the [Slint documentation](https://slint-ui.com/docs/rust/slint/) into our `src/main.rs`:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue