Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.59.0"
version = "0.60.0"
edition = "2021"
rust-version = "1.74"
license = "MIT OR Apache-2.0"
Expand All @@ -16,4 +16,4 @@ default-target = "x86_64-pc-windows-msvc"
targets = []

[dependencies]
rayon = "1.7"
rayon = "1.10"
8 changes: 4 additions & 4 deletions crates/libs/bindgen/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ The [windows-bindgen](https://crates.io/crates/windows-bindgen) crate automatica
Start by adding the following to your Cargo.toml file:

```toml
[dependencies.windows-targets]
version = "0.53"
[dependencies.windows-link]
version = "0.1"

[dev-dependencies.windows-bindgen]
version = "0.59"
[build-dependencies.windows-bindgen]
version = "0.60"
```

Generate Rust bindings in a build script as follows:
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/collections/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ default-target = "x86_64-pc-windows-msvc"
targets = []

[dependencies.windows-core]
version = "0.59.0"
version = "0.60.0"
path = "../core"
default-features = false

Expand Down
4 changes: 2 additions & 2 deletions crates/libs/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "windows-core"
version = "0.59.0"
version = "0.60.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
license = "MIT OR Apache-2.0"
description = "Rust for Windows"
description = "Core type support for COM and Windows"
repository = "https://github.com/microsoft/windows-rs"
readme = "readme.md"
categories = ["os::windows-apis"]
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/core/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## windows-core
## Core type support for COM and Windows

Core primitives for the [windows](https://crates.io/crates/windows) crate.
The [windows-core](https://crates.io/crates/windows-core) crate provides core type support for the windows-* family of crates.

* [Getting started](https://kennykerr.ca/rust-getting-started/)
* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples)
Expand Down
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.2.0"
version = "0.2.1"
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 @@ -10,7 +10,7 @@ Start by adding the following to your Cargo.toml file:

```toml
[dependencies.cppwinrt]
version = "0.1"
version = "0.2"
```

Use `cppwinrt` function as needed:
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/cppwinrt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const VERSION: &str = "2.0.240405.15";

/// Calls the C++/WinRT compiler with the given arguments.
///
/// Use `cppwinrt["-help"]` for available options.
/// Use `cppwinrt(["-help"])` for available options.
#[track_caller]
pub fn cppwinrt<I, S>(args: I) -> String
where
Expand Down
5 changes: 4 additions & 1 deletion crates/libs/future/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ default = ["std"]
std = []

[dependencies.windows-core]
version = "0.59.0"
version = "0.60.0"
path = "../core"
default-features = false

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

[dev-dependencies]
windows-result = { path = "../result" }
29 changes: 29 additions & 0 deletions crates/libs/future/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,32 @@ The [windows-future](https://crates.io/crates/windows-future) crate provides sto
* [Getting started](https://kennykerr.ca/rust-getting-started/)
* [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-future]
version = "0.1"
```

Use the Windows async types as needed:

```rust
use windows_future::*;
use windows_result::*;

fn main() -> Result<()> {
// This result will be available immediately.
let ready = IAsyncOperation::ready(Ok(123));
assert_eq!(ready.get()?, 123);

let ready = IAsyncOperation::spawn(|| {
// Some lengthy operation goes here...
Ok(456)
});

assert_eq!(ready.get()?, 456);

Ok(())
}
```
3 changes: 1 addition & 2 deletions crates/libs/helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ edition = "2021"
publish = false

[dependencies]
regex = "1.7"
windows-bindgen = { workspace = true }
regex = "1.11"
windows-link = { workspace = true }
2 changes: 1 addition & 1 deletion crates/libs/numerics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ default = ["std"]
std = []

[dependencies.windows-core]
version = "0.59.0"
version = "0.60.0"
path = "../core"
default-features = false

Expand Down
2 changes: 1 addition & 1 deletion 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.4.0"
version = "0.5.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
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 @@ -10,7 +10,7 @@ Start by adding the following to your Cargo.toml file:

```toml
[dependencies.windows-registry]
version = "0.3"
version = "0.5"
```

Read and write registry keys and values as needed:
Expand Down
2 changes: 1 addition & 1 deletion 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.3.0"
version = "0.3.1"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/result/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Start by adding the following to your Cargo.toml file:

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

Use the `HRESULT`, `Error`, and specialized `Result` types as needed:
Expand Down
2 changes: 1 addition & 1 deletion 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.3.0"
version = "0.3.1"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
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 @@ -10,7 +10,7 @@ Start by adding the following to your Cargo.toml file:

```toml
[dependencies.windows-strings]
version = "0.2"
version = "0.3"
```

Use the Windows string types as needed:
Expand Down
2 changes: 1 addition & 1 deletion 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.2"
version = "0.1.3"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand Down
4 changes: 2 additions & 2 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.59.0"
version = "0.60.0"
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.74"
Expand All @@ -27,7 +27,7 @@ targets = []
rustdoc-args = ["--cfg", "docsrs"]

[dependencies.windows-core]
version = "0.59.0"
version = "0.60.0"
path = "../core"
default-features = false

Expand Down
2 changes: 1 addition & 1 deletion crates/libs/windows/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Start by adding the following to your Cargo.toml file:

```toml
[dependencies.windows]
version = "0.59"
version = "0.60"
features = [
"Data_Xml_Dom",
"Win32_Security",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.59.0
// Bindings generated by `windows-bindgen` 0.60.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.59.0
// Bindings generated by `windows-bindgen` 0.60.0

#![allow(
non_snake_case,
Expand Down
2 changes: 1 addition & 1 deletion crates/tests/libs/bindgen/src/comment.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bindings generated by `windows-bindgen` 0.59.0
// Bindings generated by `windows-bindgen` 0.60.0

#![allow(
non_snake_case,
Expand Down
2 changes: 1 addition & 1 deletion crates/tests/libs/bindgen/src/comment_no_allow.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0
// Bindings generated by `windows-bindgen` 0.60.0

windows_link::link!("kernel32.dll" "system" fn GetTickCount() -> u32);
3 changes: 3 additions & 0 deletions crates/tests/misc/readme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ workspace = true
[dev-dependencies.windows-strings]
workspace = true

[dev-dependencies.windows-future]
workspace = true

[dev-dependencies.cppwinrt]
workspace = true

Expand Down
2 changes: 2 additions & 0 deletions crates/tests/misc/readme/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
#![doc = include_str!("../../../../libs/windows/readme.md")]
#![doc = include_str!("../../../../libs/link/readme.md")]
#![doc = include_str!("../../../../libs/collections/readme.md")]
#![doc = include_str!("../../../../libs/numerics/readme.md")]
#![doc = include_str!("../../../../libs/future/readme.md")]
1 change: 1 addition & 0 deletions crates/tests/winrt/collection_interop/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fn main() {
"Test",
"--implement",
"--flat",
"--no-comment",
"--reference",
"windows_collections,flat,Windows",
]);
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/winrt/collection_interop/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
1 change: 1 addition & 0 deletions crates/tests/winrt/noexcept/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fn main() {
"Test",
"--implement",
"--flat",
"--no-comment",
]);

let include = std::env::var("OUT_DIR").unwrap();
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/winrt/noexcept/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
1 change: 1 addition & 0 deletions crates/tests/winrt/ref_params/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fn main() {
"Test",
"--implement",
"--flat",
"--no-comment",
]);

let include = std::env::var("OUT_DIR").unwrap();
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/winrt/ref_params/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
1 change: 1 addition & 0 deletions crates/tests/winrt/reference_custom/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ fn main() {
"IAsyncAction",
"--implement",
"--flat",
"--no-comment",
"--no-deps",
"--reference",
"windows,skip-root,Windows.Foundation.IStringable",
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/winrt/reference_custom/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
1 change: 1 addition & 0 deletions crates/tests/winrt/reference_no_deps/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ fn main() {
"--implement",
"--flat",
"--no-deps",
"--no-comment",
]);
}
2 changes: 0 additions & 2 deletions crates/tests/winrt/reference_no_deps/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
1 change: 1 addition & 0 deletions crates/tests/winrt/reference_no_windows/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ fn main() {
"IStringable",
"--implement",
"--flat",
"--no-comment",
]);
}
2 changes: 0 additions & 2 deletions crates/tests/winrt/reference_no_windows/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
1 change: 1 addition & 0 deletions crates/tests/winrt/reference_windows/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fn main() {
"Test",
"--implement",
"--flat",
"--no-comment",
"--reference",
"windows",
]);
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/winrt/reference_windows/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Bindings generated by `windows-bindgen` 0.59.0

#![allow(
non_snake_case,
non_upper_case_globals,
Expand Down
9 changes: 6 additions & 3 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ This repo is the home of the following crates (and other supporting crates):
* [windows](https://crates.io/crates/windows) - Safer bindings including C-style APIs as well as COM and WinRT APIs.

* [windows-bindgen](https://crates.io/crates/windows-bindgen) - Code generator for Windows metadata.
* [windows-core](https://crates.io/crates/windows-core) - Core type support for the Windows bindings.
* [windows-collections](https://crates.io/crates/windows-collections) - Windows collection types.
* [windows-core](https://crates.io/crates/windows-core) - Core type support for COM and Windows.
* [windows-future](https://crates.io/crates/windows-future) - Windows async type support.
* [windows-link](https://crates.io/crates/windows-link) - Linking for Windows.
* [windows-numerics](https://crates.io/crates/windows-numerics) - Windows numeric types.
* [windows-registry](https://crates.io/crates/windows-registry) - Windows registry.
* [windows-result](https://crates.io/crates/windows-result) - Windows error handling.
* [windows-strings](https://crates.io/crates/windows-strings) - Windows string types.
* [windows-link](https://crates.io/crates/windows-link) - Direct linking for Windows.
* [windows-targets](https://crates.io/crates/windows-targets) - Import libs for Windows (and the precursor to `windows-link` for older compilers).
* [windows-version](https://crates.io/crates/windows-version) - Windows version information.
* [windows-targets](https://crates.io/crates/windows-targets) - Import libs for Windows (and the precursor to `windows-link` for older compilers).

* [cppwinrt](https://crates.io/crates/cppwinrt) - Bundles the C++/WinRT compiler for use in Rust.