mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 23:27:22 +00:00
We don't need the resolver=2 with edition 2021
This commit is contained in:
parent
a45dcc1f9a
commit
e2ec76f9ef
3 changed files with 2 additions and 8 deletions
|
@ -74,8 +74,6 @@ default-members = [
|
|||
'tests/driver/interpreter',
|
||||
]
|
||||
|
||||
resolver = "2"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
panic = "abort"
|
||||
|
|
|
@ -64,8 +64,7 @@ In your Cargo.toml add a `build` assignment and use the `sixtyfps-build` crate i
|
|||
[package]
|
||||
...
|
||||
build = "build.rs"
|
||||
resolver = "2" # avoid dependency conflicts on some platforms
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
sixtyfps = "0.1.6"
|
||||
|
|
|
@ -15,15 +15,12 @@ Then we edit `Cargo.toml` to add the sixtyfps dependency:
|
|||
```toml
|
||||
[package]
|
||||
#...
|
||||
edition = "2018"
|
||||
resolver = "2"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
sixtyfps = "0.1.6"
|
||||
```
|
||||
|
||||
The `resolver = "2"` line is there to avoid some errors because of conflicting dependencies on some platforms.
|
||||
|
||||
Finally we copy the hello world program from the [SixtyFPS documentation](https://sixtyfps.io/docs/rust/sixtyfps/) into our `src/main.rs`:
|
||||
|
||||
```rust,noplayground
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue