#windows #internals #bindings #bindings-generator

bin+lib vergilius

Automatically generated Windows internals structures from vergiliusproject.com

3 releases

0.1.2 Jun 11, 2024
0.1.1 Jun 11, 2024
0.1.0 Jun 11, 2024

#161 in Windows APIs

Download history 4/week @ 2024-06-20 1/week @ 2024-06-27 22/week @ 2024-07-25 7/week @ 2024-08-01 3/week @ 2024-08-08 63/week @ 2024-09-12 21/week @ 2024-09-19 17/week @ 2024-09-26 4/week @ 2024-10-03

105 downloads per month

Apache-2.0

87MB
2.5M SLoC

Vergilius RS

Rust auto-generated bindings from the C structures published at vergiliusproject.com.

Generating

To generate headers:

cargo run --bin generate-headers --features=generate

You will then need to make a couple modifications to some files. To list the errors, just compile a header like clang -Wno-everything -o /dev/null headers/bindings-10.0.22631-2428-x64.h.

  • Move definition before first use
    • NOTE: Structure dependencies are resolved using a topological ordering, but dependencies with cycles sometimes resolve in the wrong order (typically only 1-2 per file)
  • Rename enum definition with < in the name

To generate bindings:

cargo run --bin generate-bindings --features=generate

Dependencies

~0–12MB
~145K SLoC