From 7fbfe0fcaef5951ec68369785fe9d07d359560eb Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 12 Apr 2024 09:58:51 -0500 Subject: [PATCH] read --- crates/libs/bindgen/readme.md | 4 ++-- crates/libs/core/readme.md | 4 ++-- crates/libs/metadata/readme.md | 4 ++-- crates/libs/registry/readme.md | 2 +- crates/libs/result/readme.md | 2 +- crates/libs/sys/readme.md | 6 +++--- crates/libs/sys/src/lib.rs | 2 +- crates/libs/targets/readme.md | 2 +- crates/libs/version/readme.md | 2 +- crates/libs/windows/readme.md | 6 +++--- crates/libs/windows/src/lib.rs | 2 +- crates/tests/standalone/src/b_pcstr.rs | 9 --------- crates/tools/riddle/readme.md | 2 +- 13 files changed, 19 insertions(+), 28 deletions(-) diff --git a/crates/libs/bindgen/readme.md b/crates/libs/bindgen/readme.md index d45dc9acf6..098ba39b53 100644 --- a/crates/libs/bindgen/readme.md +++ b/crates/libs/bindgen/readme.md @@ -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) +* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.0/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) Start by adding the following to your Cargo.toml file: @@ -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: diff --git a/crates/libs/core/readme.md b/crates/libs/core/readme.md index 849d37e755..f313f7d565 100644 --- a/crates/libs/core/readme.md +++ b/crates/libs/core/readme.md @@ -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) +* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.0/crates/samples) * [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", diff --git a/crates/libs/metadata/readme.md b/crates/libs/metadata/readme.md index 78768dbdc9..79c85be2b5 100644 --- a/crates/libs/metadata/readme.md +++ b/crates/libs/metadata/readme.md @@ -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) +* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.0/crates/samples) * [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: diff --git a/crates/libs/registry/readme.md b/crates/libs/registry/readme.md index 48891d392a..838f8c8021 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.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) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/result/readme.md b/crates/libs/result/readme.md index 736cd3a5ff..451f3e69fa 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.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) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/sys/readme.md b/crates/libs/sys/readme.md index 37f8dc410c..77b745177a 100644 --- a/crates/libs/sys/readme.md +++ b/crates/libs/sys/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.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", diff --git a/crates/libs/sys/src/lib.rs b/crates/libs/sys/src/lib.rs index 29ef92194d..8b405e3215 100644 --- a/crates/libs/sys/src/lib.rs +++ b/crates/libs/sys/src/lib.rs @@ -1,7 +1,7 @@ /*! Learn more about Rust for Windows here: -[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] diff --git a/crates/libs/targets/readme.md b/crates/libs/targets/readme.md index 356ef48835..0f0c653df8 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.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) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/version/readme.md b/crates/libs/version/readme.md index e2e8814fa9..89d9df1757 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.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) Start by adding the following to your Cargo.toml file: diff --git a/crates/libs/windows/readme.md b/crates/libs/windows/readme.md index cf07b3ceef..77b745177a 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.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", diff --git a/crates/libs/windows/src/lib.rs b/crates/libs/windows/src/lib.rs index a75f9c3dba..2a72d0dc79 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.54.0) +[Feature search](https://microsoft.github.io/windows-rs/features/#/0.56.0) */ #![doc(html_no_source)] diff --git a/crates/tests/standalone/src/b_pcstr.rs b/crates/tests/standalone/src/b_pcstr.rs index 766e0154bd..e69de29bb2 100644 --- a/crates/tests/standalone/src/b_pcstr.rs +++ b/crates/tests/standalone/src/b_pcstr.rs @@ -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; diff --git a/crates/tools/riddle/readme.md b/crates/tools/riddle/readme.md index 07cc14075a..38f29fe72e 100644 --- a/crates/tools/riddle/readme.md +++ b/crates/tools/riddle/readme.md @@ -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) +* [Samples](https://github.com/microsoft/windows-rs/tree/0.56.0/crates/samples) * [Releases](https://github.com/microsoft/windows-rs/releases) Start by installing `riddle`: