Skip to content

Commit

Permalink
Release 0.61.0 (#3418)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Jan 7, 2025
1 parent 9911fee commit 5888c8c
Show file tree
Hide file tree
Showing 54 changed files with 97 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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.58.0"
version = "0.59.0"
edition = "2021"
rust-version = "1.74"
license = "MIT OR Apache-2.0"
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.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:
Expand Down
12 changes: 6 additions & 6 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.58.0"
version = "0.59.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand All @@ -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"]
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,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)
2 changes: 1 addition & 1 deletion crates/libs/cppwinrt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cppwinrt"
version = "0.1.0"
version = "0.2.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/cppwinrt/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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.58.0"
version = "0.59.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
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.58.0"
version = "0.59.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand Down
8 changes: 4 additions & 4 deletions crates/libs/registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-registry"
version = "0.3.0"
version = "0.4.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand All @@ -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

Expand Down
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.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:
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/result/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-result"
version = "0.2.0"
version = "0.3.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand All @@ -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"
2 changes: 1 addition & 1 deletion crates/libs/result/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/strings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-strings"
version = "0.2.0"
version = "0.3.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/strings/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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 @@ -25,7 +25,7 @@ targets = []
all-features = true

[dependencies.windows-targets]
version = "0.52.6"
version = "0.53.0"
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-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:

Expand Down
20 changes: 10 additions & 10 deletions crates/libs/targets/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
4 changes: 2 additions & 2 deletions crates/libs/targets/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
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)

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:
Expand Down
10 changes: 5 additions & 5 deletions crates/libs/targets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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])?
Expand All @@ -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])?
Expand All @@ -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)*;
Expand All @@ -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)*;
}
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/version/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-version"
version = "0.1.1"
version = "0.1.2"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand All @@ -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"
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.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:
Expand Down
6 changes: 3 additions & 3 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.58.0"
version = "0.59.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand All @@ -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]
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.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",
Expand Down
Loading

0 comments on commit 5888c8c

Please sign in to comment.