wil-rs
Windows Implementation Library for Rust
This crate does not provide raw FFI bindings to Windows API (the winapi crate is what you are looking for). This crate does demonstrate what a Windows Implementation Library could look like in Rust ("à la" https://github.com/microsoft/wil in C++).
The winapi crate is doing a great job in providing the bindings for Windows APIs. What winapi does not provide is a safety wrapper arroung those APIs (with error handling, resource management, ...).
This "wil" crate aims to present what could be a safe wrapper for Windows API.
If this crate is massively missing that something you need. Feel free to create an issue, open a pull request.
Frequently asked questions
Example
Cargo.toml:
[]
= "0.0.3"
= "0.3.8"
main.rs:
use Token;
use WinAPIError;
use ;
use ;