windows-bindgen (0.100.0+paring.1)
Published 2026-10-14 03:21:29 +09:00 by paring
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add windows-bindgen@0.100.0+paring.1 --registry forgejoAbout this package
Code generator for Windows metadata
windows-bindgen
The windows-bindgen crate generates Rust bindings from Windows metadata.
Add the generator as a build dependency and the generated code's runtime dependency:
[dependencies.windows-link]
version = "0.100"
[build-dependencies.windows-bindgen]
version = "0.100"
Generate bindings from build.rs:
let args = [
"--out",
"src/bindings.rs",
"--flat",
"--sys",
"--filter",
"GetTickCount",
];
windows_bindgen::bindgen(args);
And then use the bindings as follows:
mod bindings;
unsafe {
println!("{}", bindings::GetTickCount());
}
Dependencies
| ID | Version |
|---|---|
| proc-macro2 | ^1.0 |
| quote | ^1.0 |
| windows-default | ^0.100.0 |
| windows-metadata | ^0.100.0 |
| windows-link | ^0.100.0 |
Details
2026-10-14 03:21:29 +09:00
2026-11-15 19:56:41 +09:00
Assets (1)
Versions (1)
View all
Cargo
5
MIT OR Apache-2.0
88 KiB
0.100.0+paring.1
2026-10-14