chore(deps): update rust crate windows to 0.61.0 (1.x) #13038
+3
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.39.0
->0.61.0
Release Notes
microsoft/windows-rs (windows)
v0.61.0
Compare Source
Major crate updates:
windows
0.59.0windows-core
0.59.0windows-implement
0.59.0windows-interface
0.59.0windows-targets
0.53.0windows_i686_msvc
0.53.0windows_x86_64_msvc
0.53.0windows_aarch64_msvc
0.53.0windows_i686_gnu
0.53.0windows_x86_64_gnu
0.53.0windows_i686_gnullvm
0.53.0windows_x86_64_gnullvm
0.53.0windows_aarch64_gnullvm
0.53.0windows-bindgen
0.59.0windows-registry
0.4.0windows-result
0.3.0windows-strings
0.3.0cppwinrt
0.2.0Minor crate updates:
windows-version
0.1.2Excluded:
windows-sys
0.59.0Things to keep in mind:
The tag/release names no longer map directly to the crate versions, so to find samples for a particular release requires looking at the releases page and finding the release that most recently updated a particular crate.
The
windows-bindgen
crate includes the major code generation overhaul that brings many improvements - be sure to check out the PR description for more information. The resulting code gen depends on the new version ofwindows-core
and its dependencies, unless you include the--sys
option. #3359The
cppwinrt
crate constitutes a major update due to streamlining the error handling. #3415The
windows-registry
,windows-strings,
andwindows-result
crates are also major version updates since they include small breaking changes.The
windows-targets
crate finally receives a major version update, the first in over a year. This is due to #3359 and #3342 potentially introducing breaking changes. Although unlikely, these updates introduced sufficient changes that make it hard to ensure that thewindows-targets
libs don't break existing code. As we're updatingwindows-targets
anyway, I took the liberty to bump the MSRV to 1.60 - to match the latest version ofwindows-sys
- and remove the old but unused doc macro feature. Both remained for compatibility with very old dependents of thewindows-targets
crate.The
windows-version
crate receives a minor update to update its dependency on thewindows-targets
crate.Beyond these specifics, this update is the culmination of around 6 months worth of work on the
windows-rs
project. The biggest improvements comes from the new code generation engine, but many other improvements are now also available for production. This includes support for many new lints, warnings, and suggestions provided by the Rust toolchain; much smaller code gen thanks to deriving many more traits; more efficient code gen; major improvements to WinRT type system and implementation support; more robust and consistent error handling; stock collection and async support; improved support for class hierarchies; and much more!In addition to "what's changed" below, check out what's changed for notes for 0.60.0 and 0.59.0 for additional changes that roll up to the crates published as part of this release.
What's Changed
std
references inwindows
andwindows-core
crates forno_std
builds by @kennykerr in https://github.com/microsoft/windows-rs/pull/3317unwrap
helper forNTSTATUS
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3324windows-bindgen
update by @kennykerr in https://github.com/microsoft/windows-rs/pull/3359windows-bindgen
should generateno_std
bindings by default by @kennykerr in https://github.com/microsoft/windows-rs/pull/3366BOOLEAN
tobool
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3376transmute
for input value type parameter bindings by @kennykerr in https://github.com/microsoft/windows-rs/pull/3377windows-bindgen
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3379track_caller
to make debuggingbindgen
build script errors easier by @kennykerr in https://github.com/microsoft/windows-rs/pull/3383windows-bindgen
now usesRef
andOutRef
for COM interface traits by @kennykerr in https://github.com/microsoft/windows-rs/pull/3386windows-bindgen
to supportunsafe_op_in_unsafe_fn
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3393Ref
work with more than just interface types by @kennykerr in https://github.com/microsoft/windows-rs/pull/3394cppwinrt
should consistently panic on failure by @kennykerr in https://github.com/microsoft/windows-rs/pull/3415track_caller
to make debuggingcppwinrt
build script errors easier by @kennykerr in https://github.com/microsoft/windows-rs/pull/3417transmute
where possible by @kennykerr in https://github.com/microsoft/windows-rs/pull/3421New Contributors
Full Changelog: microsoft/windows-rs@0.60.0...0.61.0
v0.60.0
Compare Source
This release includes an update to the windows-registry and windows-strings crates, mainly to provide various improvements to registry support for rustup.
What's Changed
Value
to/fromHSTRING
conversion by @kennykerr in https://github.com/microsoft/windows-rs/pull/3190From<&str>
forGUID
withTryFrom<&str>
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3193windows-registry
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3215windows-registry
crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3214ready
support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3221spawn
support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3235Eq
for structs containing floating point type parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/3255noexcept
methods in a composable hierarchy by @kennykerr in https://github.com/microsoft/windows-rs/pull/3262windows-metadata
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3268Eq
andPartialEq
for structs containing callbacks by @kennykerr in https://github.com/microsoft/windows-rs/pull/3270windows-bindgen
crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3272web
on most workflows by @kennykerr in https://github.com/microsoft/windows-rs/pull/3279VARIANT
support to thewindows
crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3282jsonschema
dependency by @kennykerr in https://github.com/microsoft/windows-rs/pull/3286raw-dylib
testing by @kennykerr in https://github.com/microsoft/windows-rs/pull/3287cppwinrt
concurrency issue by @kennykerr in https://github.com/microsoft/windows-rs/pull/3289Deref
implementation forHSTRING
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3291New Contributors
Full Changelog: microsoft/windows-rs@0.59.0...0.60.0
v0.59.0
Compare Source
This release includes an update to the windows-sys crate only. The
windows-sys
crate is updated very infrequently and only when there is an explicit need to do so. The 0.59.0 release includes a rollup of API fixes, updates, and additions since the 0.52.0 release nine months ago. Notably:Full Changelog: microsoft/windows-rs@0.52.0...0.59.0
v0.58.0
Compare Source
This release includes updates to metadata for new or fixed API definitions (#3111, #3136), various improvements and fixes to code generation, compliance with new Rust warnings, additional COM authoring support improvements (#3065), limited non-Windows support (#3135), and more.
It includes major updates to the following crates, mainly due to breaking changes in metadata for API definitions.
riddle
0.58.0windows
0.58.0windows-bindgen
0.58.0windows-core
0.58.0windows-implement
0.58.0windows-interface
0.58.0windows-metadata
0.58.0It also includes major updates to the following utility crates.
windows-result
0.2.0windows-registry
0.2.0The
windows-result
crate now provides limited non-Windows support, and thewindows-registry
crate offers new lossless queries for binary and wide string values.And it includes minor updates to the
windows-targets
crates, with the addition of several new APIs.windows-targets
0.52.6This release also includes the first published version of the
windows-strings
crate, moving the string types from thewindows-core
crate into a dedicated crate as a smaller dependency. It also offers an efficientHSTRING
builder (#3133).To clarify, the only crates that continue to support limited non-Windows builds are:
windows-bindgen
andwindows-metadata
for code generation on non-Windows platforms.windows-core
andwindows-result
for COM support on non-Windows platforms.What's Changed
rustfmt
for repo by @kennykerr in https://github.com/microsoft/windows-rs/pull/3084windows-bindgen
directly by @kennykerr in https://github.com/microsoft/windows-rs/pull/3086windows-result
to work on non-Windows platforms by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3082Debug
derive macro does not need to be qualified by @kennykerr in https://github.com/microsoft/windows-rs/pull/3097unused
to deal with new warning about "unused" private fields in structs by @kennykerr in https://github.com/microsoft/windows-rs/pull/3103mio
dependency by @kennykerr in https://github.com/microsoft/windows-rs/pull/3107windows
crate works by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3110cargo run ...
by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3113windows
andwindows-sys
in unit test mode by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3112windows-strings
crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3125windows-core
internals by @kennykerr in https://github.com/microsoft/windows-rs/pull/3129windows-bindgen
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3130Error
andResult<()>
to be the same size asHRESULT
by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3126windows-core
crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3131windows_slim_errors
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3132HSTRING
builder and registry support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3133Send
andSync
forWeak<T>
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3138Future
implementation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3142HSTRING
builder provides initialized memory by @kennykerr in https://github.com/microsoft/windows-rs/pull/3141windows-strings
crate Windows-only by @kennykerr in https://github.com/microsoft/windows-rs/pull/3143Full Changelog: microsoft/windows-rs@0.57.0...0.58.0
v0.57.0
Compare Source
This release includes updates to a number of crates.
It includes major updates to the following:
riddle
0.57.0windows
0.57.0windows-bindgen
0.57.0windows-core
0.57.0windows-implement
0.57.0windows-interface
0.57.0windows-metadata
0.57.0It also includes minor updates to the following:
windows-result
0.1.2windows-registry
0.1.2This includes various improvements and fixes to code generation, compliance with new Rust warnings, COM authoring support helpers, and more.
This release also includes the first published version of the
cppwinrt
crate.What's Changed
as_raw
towindows-registry
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3003E_POINTER
constant inwindows-core
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3008Copy
,Clone
, andDebug
for handles by @kennykerr in https://github.com/microsoft/windows-rs/pull/3015HSTRING
interior mutability warnings in nightly by @riverar in https://github.com/microsoft/windows-rs/pull/3021unexpected_cfgs
warnings by @kennykerr in https://github.com/microsoft/windows-rs/pull/3022Ref
andOutRef
to enhance COM authoring support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3025Ref
interface parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/3027from_raw
towindows-registry
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3034windows-registry
readme by @kennykerr in https://github.com/microsoft/windows-rs/pull/3035windows-metadata
andwindows-bindgen
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3039TypeName
to support pattern matching by @kennykerr in https://github.com/microsoft/windows-rs/pull/3040ComObject<T>
type that represents a heap-allocated COM object by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3043unexpected_cfgs
by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/3050no-default-features
yml workflow by @kennykerr in https://github.com/microsoft/windows-rs/pull/3053windows-registry
value iterator by @kennykerr in https://github.com/microsoft/windows-rs/pull/3052windows-2022
hosted runners by @kennykerr in https://github.com/microsoft/windows-rs/pull/3056cppwinrt
crate and sample by @kennykerr in https://github.com/microsoft/windows-rs/pull/3054IInspectable
implementation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3057unused_qualifications
entirely by @kennykerr in https://github.com/microsoft/windows-rs/pull/3078IUnknown
identity checks by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3073noexcept
support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3070New Contributors
Full Changelog: microsoft/windows-rs@0.56.0...0.57.0
v0.56.0
Compare Source
This release includes updates to all crates except
windows-sys
.It includes major updates to the following:
riddle
0.56.0windows
0.56.0windows-bindgen
0.56.0windows-core
0.56.0windows-implement
0.56.0windows-interface
0.56.0windows-metadata
0.56.0This includes various improvements and fixes to code generation, compliance with new Rust warnings, Arm64EC bindings, as well as ergonomic improvements. The
riddle
crate in particular now matches the version ofwindows-bindgen
as they are inextricably linked.It includes minor updates to the following:
windows-targets
0.52.5windows-result
0.1.1windows-registry
0.1.1windows-version
0.1.1The
windows-targets
crate adds support forarm64ec-pc-windows-msvc
andi686-pc-windows-gnullvm
. The other crates only update dependencies.What's Changed
windows
crate dependency inimplement
andinterface
macros by @kennykerr in https://github.com/microsoft/windows-rs/pull/2917Param
trait by @kennykerr in https://github.com/microsoft/windows-rs/pull/2938windows-core
to generate its own bindings by @kennykerr in https://github.com/microsoft/windows-rs/pull/2941windows-targets
readme by @kennykerr in https://github.com/microsoft/windows-rs/pull/2962cfg
union calculation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2965Deref
for COM interface hierarchies inwindows-bindgen
by @kennykerr in https://github.com/microsoft/windows-rs/pull/2968Deref
for COM interface hierarchies defined with theinterface
macro by @kennykerr in https://github.com/microsoft/windows-rs/pull/2969interface
macro by @kennykerr in https://github.com/microsoft/windows-rs/pull/2976Interface::IID
by @kennykerr in [https://github.comConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.