Registry / other / windows

windows

JSON →
library0.62.2rscratesunverified

Rust for Windows, providing bindings to the Windows API.

# Cargo.toml [dependencies] windows = "0.62.2"
INSTALL
IMPORT
SIG · WINDOWS
W
windows
otherrustv0.62.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HSTRING
use windows::core::HSTRING;

Minimal example creating and printing an HSTRING.

use windows::core::HSTRING; fn main() -> windows::core::Result<()> { let s = HSTRING::from("Hello, Windows!"); println!("{}", s.to_string_lossy()); Ok(()) }
Debug
Known issues
gotchaThe crate is Windows-only and requires the Windows SDK to be installed.
fix
Ensure you are building on Windows with the appropriate SDK. Use `cargo build --target x86_64-pc-windows-msvc`.
affects: >=0.0.0
Upgrade
Version history
0.62.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
windows — cargo add windows · libregistry