diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/windows-sys/readme.md | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/vendor/windows-sys/readme.md b/vendor/windows-sys/readme.md index f4d62243d..daa0ab63c 100644 --- a/vendor/windows-sys/readme.md +++ b/vendor/windows-sys/readme.md @@ -1,19 +1,16 @@ ## Rust for Windows -The `windows` and `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/metadata/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. +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/metadata/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. -* Crate documentation - * [windows](https://microsoft.github.io/windows-docs-rs/) - * [windows-sys](https://docs.rs/windows-sys) -* [Frequently Asked Questions](https://github.com/microsoft/windows-rs/tree/master/docs/FAQ.md) -* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) -* [Changelog](https://github.com/microsoft/windows-rs/releases) +* [Getting started](https://kennykerr.ca/rust-getting-started/) +* [Samples](https://github.com/microsoft/windows-rs/tree/0.45.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.42.0" +version = "0.44.0" features = [ "Data_Xml_Dom", "Win32_Foundation", @@ -25,7 +22,7 @@ features = [ Make use of any Windows APIs as needed. -```rust +```rust,no_run use windows::{ core::*, Data::Xml::Dom::*, Win32::Foundation::*, Win32::System::Threading::*, Win32::UI::WindowsAndMessaging::*, @@ -33,7 +30,7 @@ use windows::{ fn main() -> Result<()> { let doc = XmlDocument::new()?; - doc.LoadXml(w!("<html>hello world</html>"))?; + doc.LoadXml(h!("<html>hello world</html>"))?; let root = doc.DocumentElement()?; assert!(root.NodeName()? == "html"); @@ -61,8 +58,8 @@ Start by adding the following to your Cargo.toml file: ```toml [dependencies.windows-sys] -version = "0.42.0" -6features = [ +version = "0.45.0" +features = [ "Win32_Foundation", "Win32_Security", "Win32_System_Threading", @@ -72,7 +69,7 @@ version = "0.42.0" Make use of any Windows APIs as needed. -```rust +```rust,no_run use windows_sys::{ core::*, Win32::Foundation::*, Win32::System::Threading::*, Win32::UI::WindowsAndMessaging::*, }; |