Skip to content

Commit 5b160d2

Browse files
authored
Update Piet to v0.6.1. (#2345)
1 parent ac192be commit 5b160d2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

druid-derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ default-target = "x86_64-pc-windows-msvc"
1717
[dependencies]
1818
syn = "1.0.107"
1919
quote = "1.0.23"
20-
proc-macro2 = "1.0.49"
20+
proc-macro2 = "1.0.50"
2121

2222
[dev-dependencies]
2323
druid = { version = "0.7.0", path = "../druid" }

druid-shell/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ serde = ["kurbo/serde"]
6363
[dependencies]
6464
# NOTE: When changing the piet or kurbo versions, ensure that
6565
# the kurbo version included in piet is compatible with the kurbo version specified here.
66-
piet-common = "0.6.0"
66+
piet-common = "0.6.1"
6767
kurbo = "0.9.0"
6868

6969
tracing = "0.1.37"
@@ -127,7 +127,7 @@ version = "0.3.60"
127127
features = ["Window", "MouseEvent", "CssStyleDeclaration", "WheelEvent", "KeyEvent", "KeyboardEvent", "Navigator"]
128128

129129
[dev-dependencies]
130-
piet-common = { version = "0.6.0", features = ["png"] }
130+
piet-common = { version = "0.6.1", features = ["png"] }
131131
static_assertions = "1.1.0"
132132
test-log = { version = "0.2.11", features = ["trace"], default-features = false }
133133
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }

druid/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ instant = { version = "0.1.12", features = ["wasm-bindgen"] }
7171
# Optional dependencies
7272
chrono = { version = "0.4.23", optional = true }
7373
im = { version = "15.1.0", optional = true }
74-
resvg = { version = "0.28.0", optional = true }
75-
usvg = { version = "0.28.0", optional = true }
74+
resvg = { version = "0.25.0", optional = true } # When updating, make sure it doesn't pin a specific `png` crate, see druid#2345
75+
usvg = { version = "0.25.0", optional = true }
7676
tiny-skia = { version = "0.8.2", optional = true }
7777

7878
[target.'cfg(target_arch="wasm32")'.dependencies]
@@ -82,7 +82,7 @@ console_error_panic_hook = { version = "0.1.7" }
8282
[dev-dependencies]
8383
float-cmp = { version = "0.9.0", features = ["std"], default-features = false }
8484
tempfile = "3.3.0"
85-
piet-common = { version = "0.6.0", features = ["png"] }
85+
piet-common = { version = "0.6.1", features = ["png"] }
8686
pulldown-cmark = { version = "0.8.0", default-features = false }
8787
test-log = { version = "0.2.11", features = ["trace"], default-features = false }
8888
# test-env-log needs it

druid/src/widget/svg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl std::str::FromStr for SvgData {
152152
..usvg::Options::default()
153153
};
154154

155-
match Tree::from_str(svg_str, &re_opt) {
155+
match Tree::from_str(svg_str, &re_opt.to_ref()) {
156156
Ok(tree) => Ok(SvgData::new(Arc::new(tree))),
157157
Err(err) => Err(err.into()),
158158
}

0 commit comments

Comments
 (0)