Registry / other / windows-targets

windows-targets

JSON →
library0.53.5rscratesunverified

Import libs for Windows platform targeting.

# Cargo.toml [dependencies] windows-targets = "0.53.5"
INSTALL
IMPORT
SIG · WINDOWS-TARGETS
W
windows-targets
otherrustv0.53.5
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.

link
use windows_targets::link;

Links to a Windows API function at runtime.

use windows_targets::link; fn main() { // Example: link to a Windows API function unsafe { link!("kernel32.dll" "system" fn GetTickCount() -> u32); let ticks = GetTickCount(); println!("Ticks: {}", ticks); } }
Debug
Known issues
gotchaRequires the `windows` feature flag for full functionality.
fix
Add `features = ["windows"]` to your Cargo.toml dependency.
affects: >=0.1.0
Upgrade
Version history
0.53.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
windows-targets — cargo add windows-targets · libregistry