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.60
->0.61
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
Configuration
📅 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 becomes conflicted, 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.