Skip to content

Commit

Permalink
read
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Apr 12, 2024
1 parent fe8906e commit 7fbfe0f
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 28 deletions.
4 changes: 2 additions & 2 deletions crates/libs/bindgen/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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.55.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.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 All @@ -13,7 +13,7 @@ Start by adding the following to your Cargo.toml file:
version = "0.52"

[dev-dependencies.windows-bindgen]
version = "0.55"
version = "0.56"
```

Generates Rust bindings in a build script or test as needed:
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/core/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
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.55.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.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]
version = "0.54"
version = "0.56"
features = [
"Data_Xml_Dom",
"Win32_Foundation",
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/metadata/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
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.55.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.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-metadata]
version = "0.55"
version = "0.56"
```

Read metadata as needed:
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.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.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/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.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.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
6 changes: 3 additions & 3 deletions crates/libs/sys/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.53.0/crates/samples)
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.0/crates/samples)
* [Releases](https://github.com/microsoft/windows-rs/releases)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.53.0)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.56.0)

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

```toml
[dependencies.windows]
version = "0.53.0"
version = "0.56.0"
features = [
"Data_Xml_Dom",
"Win32_Foundation",
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.53.0)
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.56.0)
*/

#![no_std]
Expand Down
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.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.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/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.53.0/crates/samples) <!-- link to samples for upcoming release -->
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.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
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.54.0/crates/samples)
* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.0/crates/samples)
* [Releases](https://github.com/microsoft/windows-rs/releases)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.54.0)
* [Feature search](https://microsoft.github.io/windows-rs/features/#/0.56.0)

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

```toml
[dependencies.windows]
version = "0.54.0"
version = "0.56.0"
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.54.0)
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.56.0)
*/

#![doc(html_no_source)]
Expand Down
9 changes: 0 additions & 9 deletions crates/tests/standalone/src/b_pcstr.rs
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
#![allow(
non_snake_case,
non_upper_case_globals,
non_camel_case_types,
dead_code,
clippy::all
)]
windows_targets::link!("kernel32.dll" "system" fn lstrlenA(lpstring : PCSTR) -> i32);
pub type PCSTR = *const u8;
2 changes: 1 addition & 1 deletion crates/tools/riddle/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The [riddle](https://crates.io/crates/riddle) tool automatically generates Rust bindings from Windows metadata.

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

Start by installing `riddle`:
Expand Down

0 comments on commit 7fbfe0f

Please sign in to comment.