From 5888c8c472ab9b35c3159c2912bb045dc3020a82 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 7 Jan 2025 09:09:42 -0600 Subject: [PATCH] Release 0.61.0 (#3418) --- .github/workflows/lib.yml | 2 +- crates/libs/bindgen/Cargo.toml | 2 +- crates/libs/bindgen/readme.md | 6 +++--- crates/libs/core/Cargo.toml | 12 +++++------ crates/libs/core/readme.md | 2 +- crates/libs/cppwinrt/Cargo.toml | 2 +- crates/libs/cppwinrt/readme.md | 2 +- crates/libs/implement/Cargo.toml | 2 +- crates/libs/interface/Cargo.toml | 2 +- crates/libs/registry/Cargo.toml | 8 +++---- crates/libs/registry/readme.md | 2 +- crates/libs/result/Cargo.toml | 4 ++-- crates/libs/result/readme.md | 2 +- crates/libs/strings/Cargo.toml | 4 ++-- crates/libs/strings/readme.md | 2 +- crates/libs/sys/Cargo.toml | 2 +- crates/libs/sys/readme.md | 4 ++-- crates/libs/targets/Cargo.toml | 20 +++++++++--------- crates/libs/targets/readme.md | 4 ++-- crates/libs/targets/src/lib.rs | 10 ++++----- crates/libs/version/Cargo.toml | 4 ++-- crates/libs/version/readme.md | 2 +- crates/libs/windows/Cargo.toml | 6 +++--- crates/libs/windows/readme.md | 6 +++--- crates/libs/windows/src/lib.rs | 2 +- .../json_validator_winrt/src/bindings.rs | 2 +- .../src/bindings.rs | 2 +- crates/samples/readme.md | 6 ++---- crates/targets/aarch64_gnullvm/Cargo.toml | 4 ++-- ...ibwindows.0.52.0.a => libwindows.0.53.0.a} | Bin crates/targets/aarch64_msvc/Cargo.toml | 4 ++-- ...{windows.0.52.0.lib => windows.0.53.0.lib} | Bin crates/targets/i686_gnu/Cargo.toml | 4 ++-- ...ibwindows.0.52.0.a => libwindows.0.53.0.a} | Bin crates/targets/i686_gnullvm/Cargo.toml | 4 ++-- ...ibwindows.0.52.0.a => libwindows.0.53.0.a} | Bin crates/targets/i686_msvc/Cargo.toml | 4 ++-- ...{windows.0.52.0.lib => windows.0.53.0.lib} | Bin crates/targets/x86_64_gnu/Cargo.toml | 4 ++-- ...ibwindows.0.52.0.a => libwindows.0.53.0.a} | Bin crates/targets/x86_64_gnullvm/Cargo.toml | 4 ++-- ...ibwindows.0.52.0.a => libwindows.0.53.0.a} | Bin crates/targets/x86_64_msvc/Cargo.toml | 4 ++-- ...{windows.0.52.0.lib => windows.0.53.0.lib} | Bin crates/tests/bindgen/src/comment.rs | 2 +- crates/tests/bindgen/src/comment_no_allow.rs | 2 +- crates/tests/misc/targets/tests/files.rs | 18 ++++++++-------- crates/tests/misc/targets/tests/link.rs | 4 ++-- crates/tests/winrt/noexcept/src/bindings.rs | 2 +- crates/tests/winrt/ref_params/src/bindings.rs | 2 +- crates/tools/gnu/Cargo.toml | 2 +- crates/tools/msvc/Cargo.toml | 2 +- docs/readme.md | 5 ++--- web/features/.env | 2 +- 54 files changed, 97 insertions(+), 100 deletions(-) rename crates/targets/aarch64_gnullvm/lib/{libwindows.0.52.0.a => libwindows.0.53.0.a} (100%) rename crates/targets/aarch64_msvc/lib/{windows.0.52.0.lib => windows.0.53.0.lib} (100%) rename crates/targets/i686_gnu/lib/{libwindows.0.52.0.a => libwindows.0.53.0.a} (100%) rename crates/targets/i686_gnullvm/lib/{libwindows.0.52.0.a => libwindows.0.53.0.a} (100%) rename crates/targets/i686_msvc/lib/{windows.0.52.0.lib => windows.0.53.0.lib} (100%) rename crates/targets/x86_64_gnu/lib/{libwindows.0.52.0.a => libwindows.0.53.0.a} (100%) rename crates/targets/x86_64_gnullvm/lib/{libwindows.0.52.0.a => libwindows.0.53.0.a} (100%) rename crates/targets/x86_64_msvc/lib/{windows.0.52.0.lib => windows.0.53.0.lib} (100%) diff --git a/.github/workflows/lib.yml b/.github/workflows/lib.yml index b013781fd7..d5f00fcfd1 100644 --- a/.github/workflows/lib.yml +++ b/.github/workflows/lib.yml @@ -80,7 +80,7 @@ jobs: foreach($Test in $Tests) { $Target = $Test.Item1 $Magic = $Test.Item2 - $Output = [string](& $DumpbinPath /headers crates/targets/$Target/lib/windows.0.52.0.lib) + $Output = [string](& $DumpbinPath /headers crates/targets/$Target/lib/windows.0.53.0.lib) if($Output -match "Machine\s*: $Magic" -ne $True) { Write-Error "Import lib check failed for $Target ($Magic)." Exit 1 diff --git a/crates/libs/bindgen/Cargo.toml b/crates/libs/bindgen/Cargo.toml index 47aa26dbf5..77445dc7c7 100644 --- a/crates/libs/bindgen/Cargo.toml +++ b/crates/libs/bindgen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-bindgen" -version = "0.58.0" +version = "0.59.0" edition = "2021" rust-version = "1.74" license = "MIT OR Apache-2.0" diff --git a/crates/libs/bindgen/readme.md b/crates/libs/bindgen/readme.md index 4effe2da2b..8423cbf01c 100644 --- a/crates/libs/bindgen/readme.md +++ b/crates/libs/bindgen/readme.md @@ -3,17 +3,17 @@ The [windows-bindgen](https://crates.io/crates/windows-bindgen) crate automatically generates Rust bindings from Windows metadata. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) Start by adding the following to your Cargo.toml file: ```toml [dependencies.windows-targets] -version = "0.52" +version = "0.53" [dev-dependencies.windows-bindgen] -version = "0.58" +version = "0.59" ``` Generate Rust bindings in a build script as follows: diff --git a/crates/libs/core/Cargo.toml b/crates/libs/core/Cargo.toml index 1ddb9ed4b6..d2aa0eaf55 100644 --- a/crates/libs/core/Cargo.toml +++ b/crates/libs/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-core" -version = "0.58.0" +version = "0.59.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" @@ -18,22 +18,22 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [dependencies.windows-targets] -version = "0.52.6" +version = "0.53.0" path = "../targets" [dependencies.windows-result] -version = "0.2.0" +version = "0.3.0" path = "../result" default-features = false [dependencies.windows-strings] -version = "0.2.0" +version = "0.3.0" path = "../strings" default-features = false [dependencies] -windows-implement = { path = "../implement", version = "0.58.0" } -windows-interface = { path = "../interface", version = "0.58.0" } +windows-implement = { path = "../implement", version = "0.59.0" } +windows-interface = { path = "../interface", version = "0.59.0" } [features] default = ["std"] diff --git a/crates/libs/core/readme.md b/crates/libs/core/readme.md index 0b7035b0d3..9b7e22a7d9 100644 --- a/crates/libs/core/readme.md +++ b/crates/libs/core/readme.md @@ -3,5 +3,5 @@ Core primitives for the [windows](https://crates.io/crates/windows) crate. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) diff --git a/crates/libs/cppwinrt/Cargo.toml b/crates/libs/cppwinrt/Cargo.toml index 6197b996fa..d08ec1a80d 100644 --- a/crates/libs/cppwinrt/Cargo.toml +++ b/crates/libs/cppwinrt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cppwinrt" -version = "0.1.0" +version = "0.2.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" diff --git a/crates/libs/cppwinrt/readme.md b/crates/libs/cppwinrt/readme.md index 3ee0068d6b..64d0489416 100644 --- a/crates/libs/cppwinrt/readme.md +++ b/crates/libs/cppwinrt/readme.md @@ -3,7 +3,7 @@ The [cppwinrt](https://crates.io/crates/cppwinrt) crate bundles the C++/WinRT compiler for use in Rust. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/implement/Cargo.toml b/crates/libs/implement/Cargo.toml index e27bd53e4c..b4b05d2a7d 100644 --- a/crates/libs/implement/Cargo.toml +++ b/crates/libs/implement/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-implement" -version = "0.58.0" +version = "0.59.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" diff --git a/crates/libs/interface/Cargo.toml b/crates/libs/interface/Cargo.toml index 57ad5351d6..47ede7b458 100644 --- a/crates/libs/interface/Cargo.toml +++ b/crates/libs/interface/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-interface" -version = "0.58.0" +version = "0.59.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" diff --git a/crates/libs/registry/Cargo.toml b/crates/libs/registry/Cargo.toml index 43603714d9..df71c36c73 100644 --- a/crates/libs/registry/Cargo.toml +++ b/crates/libs/registry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-registry" -version = "0.3.0" +version = "0.4.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" @@ -18,16 +18,16 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [dependencies.windows-targets] -version = "0.52.6" +version = "0.53.0" path = "../targets" [dependencies.windows-result] -version = "0.2.0" +version = "0.3.0" path = "../result" default-features = false [dependencies.windows-strings] -version = "0.2.0" +version = "0.3.0" path = "../strings" default-features = false diff --git a/crates/libs/registry/readme.md b/crates/libs/registry/readme.md index e51dd43d9a..bf114653ff 100644 --- a/crates/libs/registry/readme.md +++ b/crates/libs/registry/readme.md @@ -3,7 +3,7 @@ The [windows-registry](https://crates.io/crates/windows-registry) crate provides simple, safe, and efficient access to the Windows registry. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/result/Cargo.toml b/crates/libs/result/Cargo.toml index fe459e7163..4036e9e258 100644 --- a/crates/libs/result/Cargo.toml +++ b/crates/libs/result/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-result" -version = "0.2.0" +version = "0.3.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" @@ -22,5 +22,5 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [dependencies.windows-targets] -version = "0.52.6" +version = "0.53.0" path = "../targets" diff --git a/crates/libs/result/readme.md b/crates/libs/result/readme.md index b76e31a845..9cbf10b2c4 100644 --- a/crates/libs/result/readme.md +++ b/crates/libs/result/readme.md @@ -3,7 +3,7 @@ The [windows-result](https://crates.io/crates/windows-result) crate provides efficient Windows error handling and propagation with support for Win32, COM, and WinRT APIs. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/strings/Cargo.toml b/crates/libs/strings/Cargo.toml index 85024bd19a..9114f5c037 100644 --- a/crates/libs/strings/Cargo.toml +++ b/crates/libs/strings/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-strings" -version = "0.2.0" +version = "0.3.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" @@ -18,7 +18,7 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [dependencies.windows-targets] -version = "0.52.6" +version = "0.53.0" path = "../targets" [features] diff --git a/crates/libs/strings/readme.md b/crates/libs/strings/readme.md index 21524124d7..d1bbf1f860 100644 --- a/crates/libs/strings/readme.md +++ b/crates/libs/strings/readme.md @@ -3,7 +3,7 @@ The [windows-strings](https://crates.io/crates/windows-strings) crate provides common Windows string types used by various Windows APIs. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/sys/Cargo.toml b/crates/libs/sys/Cargo.toml index a56e6d5577..2403c1509f 100644 --- a/crates/libs/sys/Cargo.toml +++ b/crates/libs/sys/Cargo.toml @@ -25,7 +25,7 @@ targets = [] all-features = true [dependencies.windows-targets] -version = "0.52.6" +version = "0.53.0" path = "../targets" [features] diff --git a/crates/libs/sys/readme.md b/crates/libs/sys/readme.md index 06076876ac..f0e328f707 100644 --- a/crates/libs/sys/readme.md +++ b/crates/libs/sys/readme.md @@ -3,9 +3,9 @@ The `windows-sys` crate is a zero-overhead fallback for the most demanding situations and primarily where the absolute best compile time is essential. It only includes function declarations (externs), structs, and constants. No convenience helpers, traits, or wrappers are provided. - [Getting started](https://kennykerr.ca/rust-getting-started/) -- [Samples](https://github.com/microsoft/windows-rs/tree/0.59.0/crates/samples) +- [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) - [Releases](https://github.com/microsoft/windows-rs/releases) -- [Feature search](https://microsoft.github.io/windows-rs/features/#/0.59.0) +- [Feature search](https://microsoft.github.io/windows-rs/features) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/targets/Cargo.toml b/crates/libs/targets/Cargo.toml index 3aba606643..0c1d8e5094 100644 --- a/crates/libs/targets/Cargo.toml +++ b/crates/libs/targets/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "windows-targets" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import libs for Windows" repository = "https://github.com/microsoft/windows-rs" @@ -14,25 +14,25 @@ readme = "readme.md" workspace = true [target.'cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib)))'.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.52.6" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.53.0" } [target.'cfg(all(any(target_arch = "x86_64", target_arch = "arm64ec"), target_env = "msvc", not(windows_raw_dylib)))'.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.52.6" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.53.0" } [target.'cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib)))'.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.52.6" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.53.0" } [target.'cfg(all(target_arch = "x86", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))'.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.52.6" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.53.0" } [target.'cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))'.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.52.6" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.53.0" } [target.i686-pc-windows-gnullvm.dependencies] -windows_i686_gnullvm = { path = "../../targets/i686_gnullvm", version = "0.52.6" } +windows_i686_gnullvm = { path = "../../targets/i686_gnullvm", version = "0.53.0" } [target.x86_64-pc-windows-gnullvm.dependencies] -windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.52.6" } +windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.53.0" } [target.aarch64-pc-windows-gnullvm.dependencies] -windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.52.6" } +windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.53.0" } diff --git a/crates/libs/targets/readme.md b/crates/libs/targets/readme.md index 7ac5c64cf8..0cc7b46ba5 100644 --- a/crates/libs/targets/readme.md +++ b/crates/libs/targets/readme.md @@ -3,7 +3,7 @@ The [windows-targets](https://crates.io/crates/windows-targets) crate includes import libs, supports semantic versioning, and optional support for raw-dylib. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) * [Understanding the `windows-targets` crate](https://kennykerr.ca/rust-getting-started/understanding-windows-targets.html) @@ -11,7 +11,7 @@ Start by adding the following to your Cargo.toml file: ```toml [dependencies.windows-targets] -version = "0.52" +version = "0.53" ``` Use the `link` macro to define the external functions you wish to call: diff --git a/crates/libs/targets/src/lib.rs b/crates/libs/targets/src/lib.rs index 39ae950e6c..b1ddc313c5 100644 --- a/crates/libs/targets/src/lib.rs +++ b/crates/libs/targets/src/lib.rs @@ -5,7 +5,7 @@ #[cfg(all(windows_raw_dylib, target_arch = "x86"))] #[macro_export] macro_rules! link { - ($library:literal $abi:literal $($link_name:literal)? $(#[$doc:meta])? fn $($function:tt)*) => ( + ($library:literal $abi:literal $($link_name:literal)? fn $($function:tt)*) => ( #[link(name = $library, kind = "raw-dylib", modifiers = "+verbatim", import_name_type = "undecorated")] extern $abi { $(#[link_name=$link_name])? @@ -18,7 +18,7 @@ macro_rules! link { #[cfg(all(windows_raw_dylib, not(target_arch = "x86")))] #[macro_export] macro_rules! link { - ($library:literal $abi:literal $($link_name:literal)? $(#[$doc:meta])? fn $($function:tt)*) => ( + ($library:literal $abi:literal $($link_name:literal)? fn $($function:tt)*) => ( #[link(name = $library, kind = "raw-dylib", modifiers = "+verbatim")] extern "C" { $(#[link_name=$link_name])? @@ -31,8 +31,8 @@ macro_rules! link { #[cfg(all(windows, not(windows_raw_dylib)))] #[macro_export] macro_rules! link { - ($library:literal $abi:literal $($link_name:literal)? $(#[$doc:meta])? fn $($function:tt)*) => ( - #[link(name = "windows.0.52.0")] + ($library:literal $abi:literal $($link_name:literal)? fn $($function:tt)*) => ( + #[link(name = "windows.0.53.0")] extern $abi { $(#[link_name=$link_name])? pub fn $($function)*; @@ -44,7 +44,7 @@ macro_rules! link { #[cfg(all(not(windows), not(windows_raw_dylib)))] #[macro_export] macro_rules! link { - ($library:literal $abi:literal $($link_name:literal)? $(#[$doc:meta])? fn $($function:tt)*) => ( + ($library:literal $abi:literal $($link_name:literal)? fn $($function:tt)*) => ( extern $abi { pub fn $($function)*; } diff --git a/crates/libs/version/Cargo.toml b/crates/libs/version/Cargo.toml index 446dea72df..2890dd498d 100644 --- a/crates/libs/version/Cargo.toml +++ b/crates/libs/version/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-version" -version = "0.1.1" +version = "0.1.2" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" @@ -18,5 +18,5 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [dependencies.windows-targets] -version = "0.52.6" +version = "0.53.0" path = "../targets" diff --git a/crates/libs/version/readme.md b/crates/libs/version/readme.md index 344fae4675..628362d5f7 100644 --- a/crates/libs/version/readme.md +++ b/crates/libs/version/readme.md @@ -3,7 +3,7 @@ The [windows-version](https://crates.io/crates/windows-version) crate provides reliable operating system version information without the need for application manifest files. - [Getting started](https://kennykerr.ca/rust-getting-started/) -- [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +- [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) - [Releases](https://github.com/microsoft/windows-rs/releases) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml index bb67222f0e..74d07220fb 100644 --- a/crates/libs/windows/Cargo.toml +++ b/crates/libs/windows/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "windows" -version = "0.58.0" +version = "0.59.0" authors = ["Microsoft"] edition = "2021" rust-version = "1.74" @@ -27,12 +27,12 @@ targets = [] rustdoc-args = ["--cfg", "docsrs"] [dependencies.windows-core] -version = "0.58.0" +version = "0.59.0" path = "../core" default-features = false [dependencies.windows-targets] -version = "0.52.6" +version = "0.53.0" path = "../targets" [features] diff --git a/crates/libs/windows/readme.md b/crates/libs/windows/readme.md index 3086da6113..073e7e86cf 100644 --- a/crates/libs/windows/readme.md +++ b/crates/libs/windows/readme.md @@ -3,15 +3,15 @@ The [windows](https://crates.io/crates/windows) and [windows-sys](https://crates.io/crates/windows-sys) crates let you call any Windows API past, present, and future using code generated on the fly directly from the [metadata describing the API](https://github.com/microsoft/windows-rs/tree/master/crates/libs/bindgen/default) and right into your Rust package where you can call them as if they were just another Rust module. The Rust language projection follows in the tradition established by [C++/WinRT](https://github.com/microsoft/cppwinrt) of building language projections for Windows using standard languages and compilers, providing a natural and idiomatic way for Rust developers to call Windows APIs. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/0.58.0/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) -* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.58.0) +* [Feature search](https://microsoft.github.io/windows-rs/features) Start by adding the following to your Cargo.toml file: ```toml [dependencies.windows] -version = "0.58" +version = "0.59" features = [ "Data_Xml_Dom", "Win32_Security", diff --git a/crates/libs/windows/src/lib.rs b/crates/libs/windows/src/lib.rs index fa25ca9206..c2e5751cdd 100644 --- a/crates/libs/windows/src/lib.rs +++ b/crates/libs/windows/src/lib.rs @@ -3,7 +3,7 @@ /*! Learn more about Rust for Windows here: -[Feature search](https://microsoft.github.io/windows-rs/features/#/0.58.0) +[Feature search](https://microsoft.github.io/windows-rs/features) */ #![cfg(windows)] diff --git a/crates/samples/components/json_validator_winrt/src/bindings.rs b/crates/samples/components/json_validator_winrt/src/bindings.rs index f9cbd6c1aa..39cdcdb00f 100644 --- a/crates/samples/components/json_validator_winrt/src/bindings.rs +++ b/crates/samples/components/json_validator_winrt/src/bindings.rs @@ -1,4 +1,4 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 #![allow( non_snake_case, diff --git a/crates/samples/components/json_validator_winrt_client/src/bindings.rs b/crates/samples/components/json_validator_winrt_client/src/bindings.rs index 35f0bac3b7..6569e3e429 100644 --- a/crates/samples/components/json_validator_winrt_client/src/bindings.rs +++ b/crates/samples/components/json_validator_winrt_client/src/bindings.rs @@ -1,4 +1,4 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 #![allow( non_snake_case, diff --git a/crates/samples/readme.md b/crates/samples/readme.md index 60d4965199..8e1d3399c8 100644 --- a/crates/samples/readme.md +++ b/crates/samples/readme.md @@ -1,8 +1,6 @@ Many of the samples were inspired or originally appeared in Kenny's [articles](https://kennykerr.ca/articles/) and [courses on Pluralsight](https://kennykerr.ca/courses/). -The samples in the repo compile with the latest, usually pre-release, version of the `windows` or `windows-sys` crate. +The samples in the repo compile with the latest, usually pre-release, versions of the various `windows-*` crates. To find the samples for a particular release you can use a specific release tag. For example: -https://github.com/microsoft/windows-rs/tree/0.48.0/crates/samples - -That will give you the samples that compile with version 0.48.0 of the `windows` and `windows-sys` crates. +https://github.com/microsoft/windows-rs/tree/0.60.0/crates/samples diff --git a/crates/targets/aarch64_gnullvm/Cargo.toml b/crates/targets/aarch64_gnullvm/Cargo.toml index 0dfcf6c50c..4d15c643af 100644 --- a/crates/targets/aarch64_gnullvm/Cargo.toml +++ b/crates/targets/aarch64_gnullvm/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_aarch64_gnullvm" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/aarch64_gnullvm/lib/libwindows.0.52.0.a b/crates/targets/aarch64_gnullvm/lib/libwindows.0.53.0.a similarity index 100% rename from crates/targets/aarch64_gnullvm/lib/libwindows.0.52.0.a rename to crates/targets/aarch64_gnullvm/lib/libwindows.0.53.0.a diff --git a/crates/targets/aarch64_msvc/Cargo.toml b/crates/targets/aarch64_msvc/Cargo.toml index e9f30ea128..a6a8733aaf 100644 --- a/crates/targets/aarch64_msvc/Cargo.toml +++ b/crates/targets/aarch64_msvc/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_aarch64_msvc" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/aarch64_msvc/lib/windows.0.52.0.lib b/crates/targets/aarch64_msvc/lib/windows.0.53.0.lib similarity index 100% rename from crates/targets/aarch64_msvc/lib/windows.0.52.0.lib rename to crates/targets/aarch64_msvc/lib/windows.0.53.0.lib diff --git a/crates/targets/i686_gnu/Cargo.toml b/crates/targets/i686_gnu/Cargo.toml index 56b5e090b0..22912fac72 100644 --- a/crates/targets/i686_gnu/Cargo.toml +++ b/crates/targets/i686_gnu/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_i686_gnu" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/i686_gnu/lib/libwindows.0.52.0.a b/crates/targets/i686_gnu/lib/libwindows.0.53.0.a similarity index 100% rename from crates/targets/i686_gnu/lib/libwindows.0.52.0.a rename to crates/targets/i686_gnu/lib/libwindows.0.53.0.a diff --git a/crates/targets/i686_gnullvm/Cargo.toml b/crates/targets/i686_gnullvm/Cargo.toml index 39f48c18b9..12ea83462b 100644 --- a/crates/targets/i686_gnullvm/Cargo.toml +++ b/crates/targets/i686_gnullvm/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_i686_gnullvm" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/i686_gnullvm/lib/libwindows.0.52.0.a b/crates/targets/i686_gnullvm/lib/libwindows.0.53.0.a similarity index 100% rename from crates/targets/i686_gnullvm/lib/libwindows.0.52.0.a rename to crates/targets/i686_gnullvm/lib/libwindows.0.53.0.a diff --git a/crates/targets/i686_msvc/Cargo.toml b/crates/targets/i686_msvc/Cargo.toml index 02174371c8..c177f8f535 100644 --- a/crates/targets/i686_msvc/Cargo.toml +++ b/crates/targets/i686_msvc/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_i686_msvc" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/i686_msvc/lib/windows.0.52.0.lib b/crates/targets/i686_msvc/lib/windows.0.53.0.lib similarity index 100% rename from crates/targets/i686_msvc/lib/windows.0.52.0.lib rename to crates/targets/i686_msvc/lib/windows.0.53.0.lib diff --git a/crates/targets/x86_64_gnu/Cargo.toml b/crates/targets/x86_64_gnu/Cargo.toml index 9faebe627a..3947f9b878 100644 --- a/crates/targets/x86_64_gnu/Cargo.toml +++ b/crates/targets/x86_64_gnu/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_x86_64_gnu" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/x86_64_gnu/lib/libwindows.0.52.0.a b/crates/targets/x86_64_gnu/lib/libwindows.0.53.0.a similarity index 100% rename from crates/targets/x86_64_gnu/lib/libwindows.0.52.0.a rename to crates/targets/x86_64_gnu/lib/libwindows.0.53.0.a diff --git a/crates/targets/x86_64_gnullvm/Cargo.toml b/crates/targets/x86_64_gnullvm/Cargo.toml index e007fb9a27..6a64f229f9 100644 --- a/crates/targets/x86_64_gnullvm/Cargo.toml +++ b/crates/targets/x86_64_gnullvm/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_x86_64_gnullvm" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/x86_64_gnullvm/lib/libwindows.0.52.0.a b/crates/targets/x86_64_gnullvm/lib/libwindows.0.53.0.a similarity index 100% rename from crates/targets/x86_64_gnullvm/lib/libwindows.0.52.0.a rename to crates/targets/x86_64_gnullvm/lib/libwindows.0.53.0.a diff --git a/crates/targets/x86_64_msvc/Cargo.toml b/crates/targets/x86_64_msvc/Cargo.toml index 037c603396..853e09938d 100644 --- a/crates/targets/x86_64_msvc/Cargo.toml +++ b/crates/targets/x86_64_msvc/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "windows_x86_64_msvc" -version = "0.52.6" +version = "0.53.0" authors = ["Microsoft"] edition = "2021" -rust-version = "1.56" +rust-version = "1.60" license = "MIT OR Apache-2.0" description = "Import lib for Windows" repository = "https://github.com/microsoft/windows-rs" diff --git a/crates/targets/x86_64_msvc/lib/windows.0.52.0.lib b/crates/targets/x86_64_msvc/lib/windows.0.53.0.lib similarity index 100% rename from crates/targets/x86_64_msvc/lib/windows.0.52.0.lib rename to crates/targets/x86_64_msvc/lib/windows.0.53.0.lib diff --git a/crates/tests/bindgen/src/comment.rs b/crates/tests/bindgen/src/comment.rs index 626fd5c8ba..84d35a6433 100644 --- a/crates/tests/bindgen/src/comment.rs +++ b/crates/tests/bindgen/src/comment.rs @@ -1,4 +1,4 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 #![allow( non_snake_case, diff --git a/crates/tests/bindgen/src/comment_no_allow.rs b/crates/tests/bindgen/src/comment_no_allow.rs index b8ccf46135..e176edc2de 100644 --- a/crates/tests/bindgen/src/comment_no_allow.rs +++ b/crates/tests/bindgen/src/comment_no_allow.rs @@ -1,3 +1,3 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 windows_targets::link!("kernel32.dll" "system" fn GetTickCount() -> u32); diff --git a/crates/tests/misc/targets/tests/files.rs b/crates/tests/misc/targets/tests/files.rs index a00ed98c2e..39e65381eb 100644 --- a/crates/tests/misc/targets/tests/files.rs +++ b/crates/tests/misc/targets/tests/files.rs @@ -5,16 +5,16 @@ fn test() { let targets = helpers::crates("../../../targets"); assert_eq!(8, targets.len()); - assert!(targets.iter().all(|(_, version)| version == "0.52.6")); + assert!(targets.iter().all(|(_, version)| version == "0.53.0")); // The lib names can't change for minor (semver) updates as that breaks linker search. // https://github.com/microsoft/windows-rs/issues/2869 - std::include_bytes!("../../../../targets/aarch64_gnullvm/lib/libwindows.0.52.0.a"); - std::include_bytes!("../../../../targets/aarch64_msvc/lib/windows.0.52.0.lib"); - std::include_bytes!("../../../../targets/i686_gnu/lib/libwindows.0.52.0.a"); - std::include_bytes!("../../../../targets/i686_gnullvm/lib/libwindows.0.52.0.a"); - std::include_bytes!("../../../../targets/i686_msvc/lib/windows.0.52.0.lib"); - std::include_bytes!("../../../../targets/x86_64_gnu/lib/libwindows.0.52.0.a"); - std::include_bytes!("../../../../targets/x86_64_gnullvm/lib/libwindows.0.52.0.a"); - std::include_bytes!("../../../../targets/x86_64_msvc/lib/windows.0.52.0.lib"); + std::include_bytes!("../../../../targets/aarch64_gnullvm/lib/libwindows.0.53.0.a"); + std::include_bytes!("../../../../targets/aarch64_msvc/lib/windows.0.53.0.lib"); + std::include_bytes!("../../../../targets/i686_gnu/lib/libwindows.0.53.0.a"); + std::include_bytes!("../../../../targets/i686_gnullvm/lib/libwindows.0.53.0.a"); + std::include_bytes!("../../../../targets/i686_msvc/lib/windows.0.53.0.lib"); + std::include_bytes!("../../../../targets/x86_64_gnu/lib/libwindows.0.53.0.a"); + std::include_bytes!("../../../../targets/x86_64_gnullvm/lib/libwindows.0.53.0.a"); + std::include_bytes!("../../../../targets/x86_64_msvc/lib/windows.0.53.0.lib"); } diff --git a/crates/tests/misc/targets/tests/link.rs b/crates/tests/misc/targets/tests/link.rs index f306992a66..9c8b928c7e 100644 --- a/crates/tests/misc/targets/tests/link.rs +++ b/crates/tests/misc/targets/tests/link.rs @@ -24,8 +24,8 @@ fn link_name() { #[test] fn doc() { - windows_targets::link!("kernel32.dll" "system" "SetLastError" #[doc = "SetLastError"] fn SetLastError(code: u32) -> ()); - windows_targets::link!("kernel32.dll" "system" #[doc = "GetLastError"] fn GetLastError() -> u32); + windows_targets::link!("kernel32.dll" "system" "SetLastError" fn SetLastError(code: u32) -> ()); + windows_targets::link!("kernel32.dll" "system" fn GetLastError() -> u32); unsafe { SetLastError(1234); diff --git a/crates/tests/winrt/noexcept/src/bindings.rs b/crates/tests/winrt/noexcept/src/bindings.rs index 303514a33d..931406f19e 100644 --- a/crates/tests/winrt/noexcept/src/bindings.rs +++ b/crates/tests/winrt/noexcept/src/bindings.rs @@ -1,4 +1,4 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 #![allow( non_snake_case, diff --git a/crates/tests/winrt/ref_params/src/bindings.rs b/crates/tests/winrt/ref_params/src/bindings.rs index 845e779dd1..4822089599 100644 --- a/crates/tests/winrt/ref_params/src/bindings.rs +++ b/crates/tests/winrt/ref_params/src/bindings.rs @@ -1,4 +1,4 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 #![allow( non_snake_case, diff --git a/crates/tools/gnu/Cargo.toml b/crates/tools/gnu/Cargo.toml index b91abdb30b..e9def0127b 100644 --- a/crates/tools/gnu/Cargo.toml +++ b/crates/tools/gnu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tool_gnu" -version = "0.52.0" +version = "0.53.0" edition = "2021" publish = false diff --git a/crates/tools/msvc/Cargo.toml b/crates/tools/msvc/Cargo.toml index e1c995654e..5e5501ec4f 100644 --- a/crates/tools/msvc/Cargo.toml +++ b/crates/tools/msvc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tool_msvc" -version = "0.52.0" +version = "0.53.0" edition = "2021" publish = false diff --git a/docs/readme.md b/docs/readme.md index 87e8e227b1..94448ffaad 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -3,9 +3,9 @@ The [windows](https://crates.io/crates/windows) and [windows-sys](https://crates.io/crates/windows-sys) crates let you call any Windows API past, present, and future using code generated on the fly directly from the [metadata describing the API](https://github.com/microsoft/windows-rs/tree/master/crates/libs/bindgen/default) and right into your Rust package where you can call them as if they were just another Rust module. The Rust language projection follows in the tradition established by [C++/WinRT](https://github.com/microsoft/cppwinrt) of building language projections for Windows using standard languages and compilers, providing a natural and idiomatic way for Rust developers to call Windows APIs. * [Getting started](https://kennykerr.ca/rust-getting-started/) -* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) -* [Feature search](https://microsoft.github.io/windows-rs/features/#/master) +* [Feature search](https://microsoft.github.io/windows-rs/features) This repo is the home of the following crates (and other supporting crates): @@ -20,5 +20,4 @@ This repo is the home of the following crates (and other supporting crates): * [windows-sys](https://crates.io/crates/windows-sys) - Raw bindings for C-style Windows APIs. * [windows-targets](https://crates.io/crates/windows-targets) - Import libs for Windows. * [windows-version](https://crates.io/crates/windows-version) - Windows version information. - * [cppwinrt](https://crates.io/crates/cppwinrt) - Bundles the C++/WinRT compiler for use in Rust. diff --git a/web/features/.env b/web/features/.env index 8acbc00599..8841af2fc3 100644 --- a/web/features/.env +++ b/web/features/.env @@ -1,2 +1,2 @@ BROWSER=none -REACT_APP_BRANCHES=0.59.0,0.58.0,0.57.0,0.56.0,0.54.0,0.53.0,master +REACT_APP_BRANCHES=0.61.0,0.60.0,0.59.0,0.58.0,0.57.0,0.56.0,0.54.0,0.53.0,master