Skip to content

Commit 691b822

Browse files
committed
feat(truapi-codegen): emit Rust dispatcher, wire table, and host callbacks
Extends the rustdoc-JSON code generator to emit the Rust dispatcher and wire table consumed by truapi-server, plus the TS host-callbacks adapter. Golden tests pin the emitted shapes.
1 parent 8cceb16 commit 691b822

19 files changed

Lines changed: 8193 additions & 74 deletions

Cargo.lock

Lines changed: 226 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Mismatch dumps written by tests/golden_rust_emit.rs for local inspection.
2+
tests/golden/*.actual

rust/crates/truapi-codegen/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ anyhow = "1"
1717
clap = { version = "4", features = ["derive"] }
1818
indoc = "2"
1919
convert_case = "0.6"
20+
21+
[dev-dependencies]
22+
tempfile = "3"

0 commit comments

Comments
 (0)