#internals #windows #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

#424 in Compression

Download history 47/week @ 2024-11-29 130/week @ 2024-12-06 30/week @ 2024-12-13 2/week @ 2024-12-20 7/week @ 2024-12-27 23/week @ 2025-01-03 11/week @ 2025-01-10 10/week @ 2025-02-14 30/week @ 2025-02-21 48/week @ 2025-02-28 58/week @ 2025-03-07 77/week @ 2025-03-14

213 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–13MB
~151K SLoC