Skip to content

Commit 43cac50

Browse files
committed
Bump windows-core to 0.53-0.54 range
This includes the necessary binding changes for compatibility, provided by `windows-bindgen 0.53-0.54`. Generated code by `windows-bindgen` now also expects `TryInto` to be in scope via Rust's `prelude`, which is only the case in Rust edition `2021`.
1 parent e6bc833 commit 43cac50

File tree

3 files changed

+442
-600
lines changed

3 files changed

+442
-600
lines changed

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
1212
keywords = ["IANA", "time"]
1313
categories = ["date-and-time", "internationalization", "os"]
1414
readme = "README.md"
15-
edition = "2018"
15+
edition = "2021"
1616
rust-version = "1.61.0"
1717

1818
[features]
@@ -26,7 +26,7 @@ android_system_properties = "0.1.5"
2626
core-foundation-sys = "0.8.6"
2727

2828
[target.'cfg(target_os = "windows")'.dependencies]
29-
windows-core = { version = ">=0.50, <=0.52" }
29+
windows-core = { version = ">=0.53, <=0.54" }
3030

3131
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
3232
js-sys = "0.3.66"

Diff for: api_gen/Cargo.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[package]
22
name = "api_gen"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2021"
55
publish = false
66

77
[dependencies]
8-
windows-bindgen = "0.51"
8+
windows-bindgen = "0.54"
99

10-
# Dissociate this crate from the root workspace to allow older Rust to build the main crate within
11-
# the workspace, without observing `edition = "2021"` inside `windows-bindgen`.
10+
# Dissociate this crate from the root workspace to allow older Rust to build
11+
# the main crate within the workspace, without observing higher `rust-version`
12+
# requirements inside `windows-bindgen` and its dependencies.
1213
[workspace]

0 commit comments

Comments
 (0)