Skip to content

Commit

Permalink
Update Piet to v0.6.1. (#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
xStrom authored Jan 27, 2023
1 parent ac192be commit 5b160d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion druid-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ default-target = "x86_64-pc-windows-msvc"
[dependencies]
syn = "1.0.107"
quote = "1.0.23"
proc-macro2 = "1.0.49"
proc-macro2 = "1.0.50"

[dev-dependencies]
druid = { version = "0.7.0", path = "../druid" }
Expand Down
4 changes: 2 additions & 2 deletions druid-shell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ serde = ["kurbo/serde"]
[dependencies]
# NOTE: When changing the piet or kurbo versions, ensure that
# the kurbo version included in piet is compatible with the kurbo version specified here.
piet-common = "0.6.0"
piet-common = "0.6.1"
kurbo = "0.9.0"

tracing = "0.1.37"
Expand Down Expand Up @@ -127,7 +127,7 @@ version = "0.3.60"
features = ["Window", "MouseEvent", "CssStyleDeclaration", "WheelEvent", "KeyEvent", "KeyboardEvent", "Navigator"]

[dev-dependencies]
piet-common = { version = "0.6.0", features = ["png"] }
piet-common = { version = "0.6.1", features = ["png"] }
static_assertions = "1.1.0"
test-log = { version = "0.2.11", features = ["trace"], default-features = false }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
Expand Down
6 changes: 3 additions & 3 deletions druid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ instant = { version = "0.1.12", features = ["wasm-bindgen"] }
# Optional dependencies
chrono = { version = "0.4.23", optional = true }
im = { version = "15.1.0", optional = true }
resvg = { version = "0.28.0", optional = true }
usvg = { version = "0.28.0", optional = true }
resvg = { version = "0.25.0", optional = true } # When updating, make sure it doesn't pin a specific `png` crate, see druid#2345
usvg = { version = "0.25.0", optional = true }
tiny-skia = { version = "0.8.2", optional = true }

[target.'cfg(target_arch="wasm32")'.dependencies]
Expand All @@ -82,7 +82,7 @@ console_error_panic_hook = { version = "0.1.7" }
[dev-dependencies]
float-cmp = { version = "0.9.0", features = ["std"], default-features = false }
tempfile = "3.3.0"
piet-common = { version = "0.6.0", features = ["png"] }
piet-common = { version = "0.6.1", features = ["png"] }
pulldown-cmark = { version = "0.8.0", default-features = false }
test-log = { version = "0.2.11", features = ["trace"], default-features = false }
# test-env-log needs it
Expand Down
2 changes: 1 addition & 1 deletion druid/src/widget/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl std::str::FromStr for SvgData {
..usvg::Options::default()
};

match Tree::from_str(svg_str, &re_opt) {
match Tree::from_str(svg_str, &re_opt.to_ref()) {
Ok(tree) => Ok(SvgData::new(Arc::new(tree))),
Err(err) => Err(err.into()),
}
Expand Down

0 comments on commit 5b160d2

Please sign in to comment.