windows 和windows-sys 套件可讓您使用直接從描述API 的元資料動態產生的程式碼來呼叫過去、現在和未來的任何Windows API,並直接放入您的Rust 套件中,您可以在其中呼叫它們,就像它們只是另一個Rust 一樣模組。 Rust 語言投影遵循 C++/WinRT 建立的使用標準語言和編譯器為 Windows 建立語言投影的傳統,為 Rust 開發人員呼叫 Windows API 提供了一種自然且慣用的方式。
此存儲庫是以下板條箱(以及其他支援板條箱)的所在地:
windows - 更安全的綁定,包括 C 樣式 API 以及 COM 和 WinRT API。
windows-bindgen - Windows 元資料編譯器函式庫。
windows-core - 對windows
crate 的類型支援。
windows-implement - windows
crate 的implement
宏,用於實作 COM 介面。
windows-interface - windows
crate 的interface
宏,用於宣告 COM 介面。
windows-metadata - Windows 元資料讀取器。
windows-registry - Windows 登錄。
windows-result - Windows 錯誤處理。
windows-strings - Windows 字串類型。
windows-sys - C 風格 Windows API 的原始綁定。
windows-targets - Windows 導入庫。
windows-version - Windows 版本資訊。
cppwinrt - 捆綁 C++/WinRT 編譯器以在 Rust 中使用。