You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/dev-environment/rust/rust-for-windows.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Rust for Windows, and the windows crate
3
3
description: Using the *windows* crate, and calling Windows APIs.
4
4
author: stevewhims
5
-
ms.author: stwhi
5
+
ms.author: stwhi
6
6
manager: jken
7
7
ms.topic: article
8
8
keywords: rust, windows 10, microsoft, learning rust, rust on windows for beginners, rust with vs code, rust for windows
@@ -19,15 +19,15 @@ ms.date: 03/04/2021
19
19
20
20
In the [Overview of developing on Windows with Rust](overview.md) topic, we demonstrated a simple app that outputs a *Hello, world!* message. But not only can you use Rust *on* Windows, you can also write apps *for* Windows using Rust.
21
21
22
-
You can find all of the latest updates in the [Release log of the Rust for Windows repo](https://github.com/microsoft/windows-rs/releases) on GitHub.
22
+
You can find all of the latest updates in the [Release log of the Rust for Windows repo](https://github.com/microsoft/windows-rs/releases) on GitHub.
23
23
24
24
Rust for Windows lets you use any Windows API (past, present, and future) directly and seamlessly via [the *windows* crate](https://crates.io/crates/windows) (*crate* is Rust's term for a binary or a library, and/or the source code that builds into one).
25
25
26
26
Whether it's timeless functions such as [CreateEventW](/windows/win32/api/synchapi/nf-synchapi-createeventw) and [WaitForSingleObject](/windows/win32/api/synchapi/nf-synchapi-waitforsingleobject), powerful graphics engines such as [Direct3D](/windows/win32/direct3d12/directx-12-programming-guide), traditional windowing functions such as [CreateWindowExW](/windows/win32/api/winuser/nf-winuser-createwindowexw) and [DispatchMessageW](/windows/win32/api/winuser/nf-winuser-dispatchmessagew), or more recent user interface (UI) frameworks such as [Composition](/uwp/api/windows.ui.composition) and [Xaml](/uwp/api/windows.ui.xaml), [the *windows* crate](https://crates.io/crates/windows) has you covered.
27
27
28
28
The [win32metadata](https://github.com/microsoft/win32metadata) project aims to provide metadata for Win32 APIs. This metadata describes the API surface—strongly-typed API signatures, parameters, and types. This enables the entire Windows API to be projected in an automated and complete way for consumption by Rust (as well as languages such as C# and C++). Also see [Making Win32 APIs more accessible to more languages](https://blogs.windows.com/windowsdeveloper/2021/01/21/making-win32-apis-more-accessible-to-more-languages/).
29
29
30
-
As a Rust developer, you'll use Cargo (Rust's package management tool)—along with `https://crates.io` (the Rust community's crate registry)—to manage the dependencies in your projects. The good news is that you can reference [the *windows* crate](https://crates.io/crates/windows) from your Rust apps, and then immediately beginning calling Windows APIs. You can also find Rust [documentation for the *windows* crate](https://docs.rs/windows/latest/windows/) over on `https://docs.rs`.
30
+
As a Rust developer, you'll use Cargo (Rust's package management tool)—along with `https://crates.io` (the Rust community's crate registry)—to manage the dependencies in your projects. The good news is that you can reference [the *windows* crate](https://crates.io/crates/windows) from your Rust apps, and then immediately begin calling Windows APIs. You can also find Rust [documentation for the *windows* crate](https://docs.rs/windows/latest/windows/) over on `https://docs.rs`.
31
31
32
32
Similar to [C++/WinRT](/windows/uwp/cpp-and-winrt-apis/), [Rust for Windows](https://github.com/microsoft/windows-rs) is an open source language projection developed on GitHub. Use the [Rust for Windows](https://github.com/microsoft/windows-rs) repo if you have questions about Rust for Windows, or if you wish to report issues with it.
0 commit comments