microsoft / windows-rs

Rust for Windows
https://kennykerr.ca/rust-getting-started/
Apache License 2.0
10.1k stars 473 forks source link

Add `windows-strings` crate #3125

Closed kennykerr closed 1 week ago

kennykerr commented 1 week ago

This update pulls out the Windows string types from the windows-core crate and makes them available directly without a dependency on the windows or windows-core crates. This will help to make these string types more accessible to library crates such as windows-registry (#3121).

These types are still included in the windows-core and windows crates as a dependency so it should not affect existing code too much.

kennykerr commented 1 week ago

Looks like the readme tests were accidentally disabled - https://github.com/microsoft/windows-rs/pull/3125/commits/cf9b35bb35566244fbef6bd786fa7e4f3a0df75f turns them back on.

kennykerr commented 1 week ago

This whole non-Windows appeasement thing is getting old. It's making it too difficult to support Windows, which is the whole point of this project. 🤪 Anyway, the latest version retains basic Linux compatibility for windows-core only to support COM. For now, I needed to keep windows-strings at least building on non-Windows but I plan to limit non-Windows support to COM and nothing more.