项目
在 GitHub 查看
microsoft/windows-rs
关于
Rust for Windows
其他项目实测星标增长
- 24小时
- +8
- 7天
- +24
- 15天
- +51
- 1个月
- +93
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文windows-rs provides Rust crates for Windows APIs, from COM support and system services to UI and
raw bindings.
Prefer the focused crates below when they cover the functionality you need. For additional APIs,
windows and
windows-sys provide pre-generated bindings behind feature flags.
Use windows-bindgen when you want to generate a
project-specific set of bindings instead.
Each crate README provides setup, a working example, and essential usage guidance. Follow its links for API documentation and samples.
Crates
Core types and interop
| Crate | Description |
|---|---|
| windows-core | COM and WinRT types, traits, and authoring macros. |
| windows-result | Windows error handling and propagation. |
| windows-strings | Windows string types, conversions, and macros. |
| windows-link | Links C-style functions without import libraries. |
Values and collections
| Crate | Description |
|---|---|
| windows-collections | WinRT collections. |
| windows-numerics | Graphics vectors, matrices, and rectangles. |
| windows-reference | Implementation of WinRT IReference<T>. |
| windows-time | WinRT DateTime and TimeSpan types. |
Async and threading
| Crate | Description |
|---|---|
| windows-future | WinRT asynchronous operations as Rust futures. |
| windows-threading | Safe wrapper over the Win32 thread pool. |
System services
| Crate | Description |
|---|---|
| windows-registry | Safe Windows registry access. |
| windows-services | Support for authoring Windows services. |
| windows-version | Queries the Windows version at runtime. |
UI and graphics
| Crate | Description |
|---|---|
| windows-reactor | Declarative UI library backed by WinUI 3. |
| windows-canvas | 2D graphics built on Direct2D. |
| windows-text | Text layout and measurement built on DirectWrite. |
| windows-composition | Windows composition visuals. |
| windows-webview | Safe wrapper around the WebView2 browser control. |
| windows-window | Window creation and message dispatch. |
| windows-pickers | Windows file and folder pickers. |
| windows-animation | Wrapper around the Windows Animation Manager. |
| windows-reactor-setup | Stages the Windows App Runtime. |
Code generation and metadata
| Crate | Description |
|---|---|
| windows-clang | Generates RDL from C and C++ headers using libclang. |
| windows-clang-sys | Raw Clang bindings and native semantic queries. |
| windows-default | Embedded Windows metadata for build tools. |
| windows-metadata | Reads and writes ECMA-335 metadata. |
| windows-rdl | Parses RDL and generates ECMA-335 metadata. |
| cppwinrt | Packages the C++/WinRT compiler. |
Macro implementation
These crates implement macros exported by windows-core. Applications should use the
windows-core exports rather than depend on them directly.
| Crate | Description |
|---|---|
| windows-implement | Implements the #[implement] macro. |
| windows-interface | Implements the #[interface] macro. |
Windows API bindings
| Crate | Description |
|---|---|
| windows-bindgen | Generates Rust bindings from Windows metadata. |
| windows | Typed bindings for C-style, COM, and WinRT APIs. |
| windows-sys | Raw bindings for C-style Windows APIs. |
探索相关项目
加载中…