1 unstable release
| 0.1.0 | Dec 21, 2025 |
|---|
#1 in #graphql
Used in 2 crates
53KB
1.5K
SLoC
protograph-codegen
Code generation for protograph.
This crate generates:
.protofiles with batch RPCs- Rust structs and async-graphql objects
- DataLoader implementations
- Service traits
Usage
This is an internal crate. Most users should use protograph-build instead.
use protograph_codegen::{generate_proto, generate_rust};
let proto = generate_proto(&schema);
let rust = generate_rust(&schema);
License
MIT OR Apache-2.0
Dependencies
~2.6–4MB
~72K SLoC