#internal #windows #byte #com #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

#135 in Windows APIs

Download history 24/week @ 2025-01-01 17/week @ 2025-01-08 10/week @ 2025-02-12 57/week @ 2025-02-26 50/week @ 2025-03-05 100/week @ 2025-03-12 26/week @ 2025-03-19 7/week @ 2025-04-02 22/week @ 2025-04-09

63 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–17MB
~154K SLoC