String constants now preserve their original encoding as either UTF-8 or UTF-16 null-terminated string constants. This makes many string constants directly and efficiently usable as constants to pass to various Windows APIs that expect either "ansi" or wide null-terminated string literals. This update also provides a collection of small improvements, particularly to string handling. Updated Win32 metadata provides fixes to various API definitions.
This release does not include an update to the windows-sys crate, which remains stable and unchanged.
What's Changed
- Remove composable support by @kennykerr in #2070
- Remove unnecessary convertible parameters by @kennykerr in #2071
- Use consistent
const GUIDcode gen acrosswindowsandwindows-sysby @kennykerr in #2072 - Use
stdconsistently in thewindowscrate by @kennykerr in #2073 - Improve core string type testing by @kennykerr in #2074
- Update the Natvis definition for
HSTRINGby @ridwanabdillahi in #2077 - Improve
windows::core::Errorformatting by @kennykerr in #2075 - Make more of the
HSTRINGmethodsconstby @kennykerr in #2078 - Replace boilerplate COM interface code gen with
macro_rulesby @kennykerr in #2079 - Fix D3D12 sample by @kennykerr in #2084
- Suppress fewer warnings by @kennykerr in #2085
- Fix a few new
clippywarnings by @kaivol in #2090 - Update the win32 metadata to version 36.0.9 by @kennykerr in #2099
- Provide original encoding for string constants by @kennykerr in #2101
- Minor housekeeping by @kennykerr in #2102
- Simpler non-COM interface code gen by @kennykerr in #2103
- Fix recursive PartialEq impl in
BSTRby @rylev in #2116 - Version 0.43 by @kennykerr in #2117
Full Changelog: 0.42.0...0.43.0