~/talk

Rustly typed APIs; ... JSON RPC with Rust, Procedural macros and a DSL

Talkat NDC TechTown 2025 · 2025-09-22..09-25· [rust, webassembly]
links:none on file
slides:none on file

Procedural macros parse a custom DSL to generate JSON‑RPC client and server Rust code: typed traits, authorization checks, OpenRPC schemas and a Tower middleware stack; the generator is a few thousand lines of parser and codegen but produces a client proxy that compiles to WebAssembly so front end and back end share the same types, enabling compile‑time type safety and an in‑process Oxide test client that caught a real cancellation bug.

AI-written summary · about

  1. 0:00Rust procedural macros intro
  2. 2:18What are procedural macros
  3. 7:20JSON RPC protocol basics
  4. 9:52Custom DSL for APIs
  5. 12:47API definition language design
  6. 15:42DSL to Rust code transform
  7. 18:53Compile-time API safety
  8. 21:42Typed client proxies
  9. 23:27Testing with in-memory HTTP
  10. 25:13Extending DSL to REST
  11. 26:37Type-safe frontend with WASM
  12. 28:27Macros pros and cons
  13. 30:10Macro complexity costs
  14. 30:52Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.