Rollup merge of #136978 - ChrisDenton:windows-bindgen, r=Amanieu

Windows: Update generated bindings

Update to windows-bindgen 0.59.

This update is aimed at reducing churn in the future, but means a bit more churn now:

- `bindings.txt` no longer needs us to write the namespace for each item. This is good because it means in the future we won't need to change them if the namespace changes. However, there are a few where we still need to disambiguate due to duplicate items (this is a bug in the upstream metadata).
- The output in `windows-sys.rs` is now sorted. It was mostly sorted before but not intentionally. This should mean future changes are less noisy.

The actual code changes are minimal here. A few types are now `bool` instead of `BOOLEAN`, which is more convenient.
This commit is contained in:
Jacob Pratt 2025-02-15 02:37:30 -05:00 committed by GitHub
commit 224be79129
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 2805 additions and 2781 deletions

View file

@ -4,4 +4,4 @@ version = "0.1.0"
edition = "2021"
[dependencies.windows-bindgen]
version = "0.58.0"
version = "0.59.0"

View file

@ -29,8 +29,7 @@ fn main() -> Result<(), Box<dyn Error>> {
sort_bindings("bindings.txt")?;
let info = windows_bindgen::bindgen(["--etc", "bindings.txt"])?;
println!("{info}");
windows_bindgen::bindgen(["--etc", "bindings.txt"]);
let mut f = std::fs::File::options().append(true).open("windows_sys.rs")?;
f.write_all(ARM32_SHIM.as_bytes())?;