diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-02-15 02:37:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-15 02:37:30 -0500 |
| commit | 224be791294260fcc06cf6d7819cbdd70129ffe1 (patch) | |
| tree | 824a9832b856897071e1fd80c41d136d65ecc831 /src/tools | |
| parent | 1524b5319ad0bb165b84ec04bbab4a8ba82542b5 (diff) | |
| parent | 26eeac1a1e9fe46ffd80dd0d3dafdd2c2a644306 (diff) | |
| download | rust-224be791294260fcc06cf6d7819cbdd70129ffe1.tar.gz rust-224be791294260fcc06cf6d7819cbdd70129ffe1.zip | |
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.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/generate-windows-sys/Cargo.toml | 2 | ||||
| -rw-r--r-- | src/tools/generate-windows-sys/src/main.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/generate-windows-sys/Cargo.toml b/src/tools/generate-windows-sys/Cargo.toml index 882d3d63525..f5c0e56bb3c 100644 --- a/src/tools/generate-windows-sys/Cargo.toml +++ b/src/tools/generate-windows-sys/Cargo.toml @@ -4,4 +4,4 @@ version = "0.1.0" edition = "2021" [dependencies.windows-bindgen] -version = "0.58.0" +version = "0.59.0" diff --git a/src/tools/generate-windows-sys/src/main.rs b/src/tools/generate-windows-sys/src/main.rs index 6dbf29d957f..6bf47e84062 100644 --- a/src/tools/generate-windows-sys/src/main.rs +++ b/src/tools/generate-windows-sys/src/main.rs @@ -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())?; |
