Skip to content

Commit

Permalink
Release 0.53.0 (#2854)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Feb 22, 2024
1 parent 352bd45 commit 2d06ee6
Show file tree
Hide file tree
Showing 94 changed files with 141 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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.52.1.lib)
if($Output -match "Machine\s*: $Magic" -ne $True) {
Write-Error "Import lib check failed for $Target ($Magic)."
Exit 1
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/bindgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-bindgen"
version = "0.52.0"
version = "0.53.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.70"
Expand All @@ -21,7 +21,7 @@ default = ["metadata"]
metadata = []

[dependencies]
windows-metadata = { path = "../metadata", version = "0.52.0" }
windows-metadata = { path = "../metadata", version = "0.53.0" }
rayon = "1.7"

[dependencies.syn]
Expand Down
6 changes: 3 additions & 3 deletions crates/libs/bindgen/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.52.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [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.52"
version = "0.53"
```

Generates Rust bindings in a build script or test as needed:
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-core"
version = "0.52.0"
version = "0.53.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.62"
Expand All @@ -18,7 +18,7 @@ default-target = "x86_64-pc-windows-msvc"
targets = []

[dependencies.windows-targets]
version = "0.52.0"
version = "0.52.1"
path = "../targets"

[dependencies.windows-result]
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/core/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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.52.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Releases](https://github.com/microsoft/windows-rs/releases)

Start by adding the following to your Cargo.toml file:
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/core/src/imp/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)]
::windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoGetActivationFactory(activatableclassid : * mut::core::ffi::c_void, iid : *const GUID, factory : *mut *mut ::core::ffi::c_void) -> HRESULT);
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/core/src/imp/com_bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)]
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/implement/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-implement"
version = "0.52.0"
version = "0.53.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.64"
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/interface/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-interface"
version = "0.52.0"
version = "0.53.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.64"
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-metadata"
version = "0.52.0"
version = "0.53.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.70"
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/metadata/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The [windows-metadata](https://crates.io/crates/windows-metadata) crate provides a fast reader for Windows metadata files based on the ECMA-335 file format.

* [Getting started](https://kennykerr.ca/rust-getting-started/)
* [Samples](https://github.com/microsoft/windows-rs/tree/0.52.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Releases](https://github.com/microsoft/windows-rs/releases)

Start by adding the following to your Cargo.toml file:
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/metadata/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy::all)]
pub type CorElementType = u8;
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/registry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ default-target = "x86_64-pc-windows-msvc"
targets = []

[dependencies.windows-targets]
version = "0.52.0"
version = "0.52.1"
path = "../targets"

[dependencies.windows-result]
version = "0.1.0"
path = "../result"

[dev-dependencies.windows-bindgen]
version = "0.52.0"
version = "0.53.0"
path = "../bindgen"
2 changes: 1 addition & 1 deletion crates/libs/registry/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.52.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Releases](https://github.com/microsoft/windows-rs/releases)

Start by adding the following to your Cargo.toml file:
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/registry/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(
non_snake_case,
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/result/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ default-target = "x86_64-pc-windows-msvc"
targets = []

[dependencies.windows-targets]
version = "0.52.0"
version = "0.52.1"
path = "../targets"

[dev-dependencies.windows-bindgen]
version = "0.52.0"
version = "0.53.0"
path = "../bindgen"
27 changes: 26 additions & 1 deletion crates/libs/result/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,30 @@
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.52.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Releases](https://github.com/microsoft/windows-rs/releases)

Start by adding the following to your Cargo.toml file:

```toml
[dependencies.windows-result]
version = "0.1"
```

Use the `HRESULT`, `Error`, and specialized `Result` types as needed:

```rust
use windows_result::*;

const S_OK: HRESULT = HRESULT(0);
const ERROR_CANCELLED: u32 = 1223;
const E_CANCELLED: HRESULT = HRESULT::from_win32(ERROR_CANCELLED);

fn main() -> Result<()> {
S_OK.ok()?;
let e = Error::new(E_CANCELLED, "test message");
assert_eq!(e.code(), E_CANCELLED);
assert_eq!(e.message(), "test message");
Err(e)
}
```
2 changes: 1 addition & 1 deletion crates/libs/result/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(
non_snake_case,
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ targets = []
all-features = true

[dependencies.windows-targets]
version = "0.52.0"
version = "0.52.1"
path = "../targets"

[features]
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/sys/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/0.52.0/crates/samples)
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples)
* [Releases](https://github.com/microsoft/windows-rs/releases)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.52.0)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.53.0)

Start by adding the following to your Cargo.toml file:

Expand Down
2 changes: 1 addition & 1 deletion crates/libs/sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.52.0)
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.53.0)
*/

#![no_std]
Expand Down
16 changes: 8 additions & 8 deletions crates/libs/targets/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[package]
name = "windows-targets"
version = "0.52.0"
version = "0.52.1"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.60"
Expand All @@ -14,22 +14,22 @@ 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.0" }
windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.52.1" }

[target.'cfg(all(target_arch = "x86_64", target_env = "msvc", not(windows_raw_dylib)))'.dependencies]
windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.52.0" }
windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.52.1" }

[target.'cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib)))'.dependencies]
windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.52.0" }
windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.52.1" }

[target.'cfg(all(target_arch = "x86", target_env = "gnu", not(windows_raw_dylib)))'.dependencies]
windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.52.0" }
windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.52.1" }

[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.0" }
windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.52.1" }

[target.x86_64-pc-windows-gnullvm.dependencies]
windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.52.0" }
windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.52.1" }

[target.aarch64-pc-windows-gnullvm.dependencies]
windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.52.0" }
windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.52.1" }
2 changes: 1 addition & 1 deletion crates/libs/targets/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.52.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Releases](https://github.com/microsoft/windows-rs/releases)

Start by adding the following to your Cargo.toml file:
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/targets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ macro_rules! link {
#[macro_export]
macro_rules! link {
($library:literal $abi:literal $($link_name:literal)? fn $($function:tt)*) => (
#[link(name = "windows.0.52.0")]
#[link(name = "windows.0.52.1")]
extern $abi {
$(#[link_name=$link_name])?
pub fn $($function)*;
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/version/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ default-target = "x86_64-pc-windows-msvc"
targets = []

[dependencies.windows-targets]
version = "0.52.0"
version = "0.52.1"
path = "../targets"

[dev-dependencies.windows-bindgen]
version = "0.52.0"
version = "0.53.0"
path = "../bindgen"
2 changes: 1 addition & 1 deletion crates/libs/version/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.52.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Releases](https://github.com/microsoft/windows-rs/releases)

Start by adding the following to your Cargo.toml file:
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/version/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(
non_snake_case,
Expand Down
10 changes: 5 additions & 5 deletions crates/libs/windows/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[package]
name = "windows"
version = "0.52.0"
version = "0.53.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.62"
Expand All @@ -22,10 +22,10 @@ targets = []
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
windows-core = { path = "../core", version = "0.52.0" }
windows-targets = { path = "../targets", version = "0.52.0" }
windows-implement = { path = "../implement", version = "0.52.0", optional = true }
windows-interface = { path = "../interface", version = "0.52.0", optional = true }
windows-core = { path = "../core", version = "0.53.0" }
windows-targets = { path = "../targets", version = "0.52.1" }
windows-implement = { path = "../implement", version = "0.53.0", optional = true }
windows-interface = { path = "../interface", version = "0.53.0", optional = true }

[features]
default = []
Expand Down
6 changes: 3 additions & 3 deletions crates/libs/windows/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.52.0/crates/samples)
* [Samples](https://github.com/microsoft/windows-rs/tree/0.53.0/crates/samples)
* [Releases](https://github.com/microsoft/windows-rs/releases)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.52.0)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.53.0)

Start by adding the following to your Cargo.toml file:

```toml
[dependencies.windows]
version = "0.52"
version = "0.53"
features = [
"Data_Xml_Dom",
"Win32_Foundation",
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/windows/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*!
Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.52.0)
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.53.0)
*/

#![doc(html_no_source)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(
non_snake_case,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.52.0
// Bindings generated by `windows-bindgen` 0.53.0

#![allow(
non_snake_case,
Expand Down
2 changes: 1 addition & 1 deletion crates/targets/aarch64_gnullvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows_aarch64_gnullvm"
version = "0.52.0"
version = "0.52.1"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.60"
Expand Down
2 changes: 1 addition & 1 deletion crates/targets/aarch64_msvc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows_aarch64_msvc"
version = "0.52.0"
version = "0.52.1"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.60"
Expand Down
Loading

0 comments on commit 2d06ee6

Please sign in to comment.