Generate Types and StructuredData API shims

This commit is contained in:
2026-08-08 11:56:13 +02:00
parent d3f5e27f52
commit 0a2e7dd057
15 changed files with 12120 additions and 5154 deletions

View File

@@ -37,6 +37,8 @@ Regenerate or validate the Rust mapping with only Python's standard library:
```sh
python3 tools/generate_rust_mapping.py
python3 tools/generate_rust_mapping.py --check
python3 tools/generate_api_shims.py
python3 tools/generate_api_shims.py --check
```
The checker rejects duplicate C# IDs, duplicate Rust destinations, invalid
@@ -48,3 +50,9 @@ fallbacks, and generated function bodies that do not use the standardized
The two support traits in `RUST-TYPES.tsv` are included because compiled public
inheritance records reference them even though they are absent from the public
type table.
`generate_api_shims.py` consumes the catalog and reviewed mapping ledger. It
currently owns the completed Types and StructuredData slices, formats their
generated Rust deterministically, and rejects any missing or stale type/member
documentation ID. `SHIM-COVERAGE.md` distinguishes callable slices from the
remaining milestone work; mapping coverage alone is not callable coverage.