Skip to content

Commit

Permalink
Bump windows-core to 0.53-0.54 range
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
MarijnS95 committed Mar 26, 2024
1 parent bf83753 commit a7a0907
Show file tree
Hide file tree
Showing 3 changed files with 439 additions and 598 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
keywords = ["IANA", "time"]
categories = ["date-and-time", "internationalization", "os"]
readme = "README.md"
edition = "2018"
edition = "2021"

[features]
# When enabled, the library will succeed to compile for unknown target platforms, and return an `Err(GetTimezoneError::OsError)` at runtime.
Expand All @@ -25,7 +25,7 @@ android_system_properties = "0.1.5"
core-foundation-sys = "0.8.3"

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

[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.50"
Expand Down
4 changes: 2 additions & 2 deletions api_gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "api_gen"
version = "0.0.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
windows-bindgen = "0.51"
windows-bindgen = "0.54"

# Dissociate this crate from the root workspace to allow older Rust to build the main crate within
# the workspace, without observing `edition = "2021"` inside `windows-bindgen`.
Expand Down

0 comments on commit a7a0907

Please sign in to comment.