Update dependencies and bump to Rust 1.80 (#450)

There is one "semi-false-positive" lint triggered, which I have fixed.
Otherwise, the required
```
cargo upgrade --ignore-rust-version
cargo update
```
This commit is contained in:
Daniel McNab 2024-07-26 14:02:41 +01:00 committed by GitHub
parent 5e07dcebad
commit d70076262d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 333 additions and 360 deletions

View File

@ -3,7 +3,7 @@ env:
# version like 1.70. Note that we only specify MAJOR.MINOR and not PATCH so that bugfixes still
# come automatically. If the version specified here is no longer the latest stable version,
# then please feel free to submit a PR that adjusts it along with the potential clippy fixes.
RUST_STABLE_VER: "1.79" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
RUST_STABLE_VER: "1.80" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
# The purpose of checking with the minimum supported Rust toolchain is to detect its staleness.
# If the compilation fails, then the version specified here needs to be bumped up to reality.
# Be sure to also update the rust-version property in the workspace Cargo.toml file,

663
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -23,9 +23,6 @@ repository = "https://github.com/linebender/xilem"
homepage = "https://xilem.dev/"
[workspace.lints]
# Remove assigning_clones once it's allowed by default in stable Rust
# https://github.com/rust-lang/rust-clippy/pull/12779
clippy.assigning_clones = "allow"
rust.unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(FALSE)',
'cfg(tarpaulin_include)',
@ -109,13 +106,13 @@ wgpu = "0.20.1"
kurbo = "0.11.0"
parley = "0.1.0"
peniko = "0.1.1"
winit = "0.30.2"
winit = "0.30.4"
tracing = { version = "0.1.40", default-features = false }
smallvec = "1.13.2"
dpi = "0.1.1"
fnv = "1.0.7"
image = { version = "0.25.1", default-features = false }
image = { version = "0.25.2", default-features = false }
web-time = "1.1.0"
bitflags = "2.5.0"
bitflags = "2.6.0"
accesskit = "0.16.0"
accesskit_winit = "0.22.0"

View File

@ -30,8 +30,8 @@ tracing = { workspace = true, features = ["default"] }
fnv.workspace = true
image.workspace = true
once_cell = "1.19.0"
serde = { version = "1.0.200", features = ["derive"] }
serde_json = "1.0.116"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
futures-intrusive = "0.5.0"
pollster = "0.3.0"
unicode-segmentation = "1.11.0"
@ -50,7 +50,7 @@ web-time.workspace = true
[dev-dependencies]
float-cmp = { version = "0.9.0", features = ["std"], default-features = false }
image = { workspace = true, features = ["png"] }
insta = { version = "1.38.0" }
insta = { version = "1.39.0" }
assert_matches = "1.5.0"
tempfile = "3.10.1"

View File

@ -5,8 +5,7 @@
use std::num::NonZeroUsize;
use image::io::Reader as ImageReader;
use image::{Rgba, RgbaImage};
use image::{ImageReader, Rgba, RgbaImage};
use vello::util::RenderContext;
use vello::{block_on_wgpu, RendererOptions};
use wgpu::{

View File

@ -36,7 +36,7 @@ tracing.workspace = true
vello.workspace = true
smallvec.workspace = true
accesskit.workspace = true
tokio = { version = "1.38.0", features = ["rt", "rt-multi-thread", "time"] }
tokio = { version = "1.39.1", features = ["rt", "rt-multi-thread", "time"] }
[dev-dependencies]
accesskit_winit.workspace = true

View File

@ -166,11 +166,11 @@ impl<State, Action> View<State, Action, ViewCtx> for File {
) -> Mut<'el, Self::Element> {
if prev.name != self.name {
let new_path = ctx.current_folder_path.join(&*self.name);
let _ = std::fs::rename(&element, &new_path);
let _ = std::fs::rename(&*element, &new_path);
*element = new_path;
}
if self.contents != prev.contents {
let _ = std::fs::write(&element, self.contents.as_bytes());
let _ = std::fs::write(&*element, self.contents.as_bytes());
}
element
}

View File

@ -10,8 +10,8 @@ workspace = true
[dependencies]
console_error_panic_hook = "0.1.7"
serde = { version = "1.0.200", features = ["derive"] }
serde_json = "1.0.116"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
tracing = "0.1.40"
tracing-wasm = "0.2.1"
wasm-bindgen = "0.2.92"