Key points
Windows Metadata
Windows Runtime(WinRT) Apis are described in binary metadata files with extension .winmd
. Languages projections are dependent on metadata files.
- AI
- AppilicationModel
- Data
- Devices
- Foundation
- Gaming
- Globalization
- Graphics
- Management.Setup
- Management
- Media
- Networking
- Perception
- Security
- Services
- Storage
- System
- UI
- UI.Xaml - Excluded from rust bind
- Web
Rust Bindgen
rust-bindgen
automatically parse C/C++ header files, and generated corresponding Rust binding code, which can reduce working on writing bind codes, improve develop efficiency.
Usually used with build.rs, generate bind code before build source code.
windows
Provides bindings for Windows API, like C-style APIS, COM(Component Object Model) and WinRT APIs, provides the most comprehensive API coverage for Windows. And provide more safe programming model.
windows-sys
Provides raw bindings for C-style Windows APIs, lack support for COM and WinRT APIS, for faster compile.