wesley-emit-rust
wesley-emit-rust projects Wesley Level 1 IR into Rust source artifacts using
a structured emitter. It is the native Rust code-generation surface for models
and operation bindings derived from GraphQL schema definitions.
Emitter Boundary
Rust generation is a two-step pipeline:
- Lower Wesley IR into a crate-local Rust syntax model.
- Render that syntax model through the dedicated printer.
Semantic lowering must not interleave source string assembly with schema
walking. Raw String writes belong at the printer boundary only, where escaping,
identifier handling, attributes, and formatting are centralized.
The printer is deterministic and test-gated; it is not a third-party Rust parser or token-stream pretty-printer. Emitter changes should keep hostile-value parse and compile coverage in place for any source text that incorporates schema, operation, or law-authored strings.
See the repository README and architecture guide for the full project context.