protograph-codegen 0.1.0

Code generation for protograph (proto + Rust)
Documentation

protograph-codegen

Code generation for protograph.

This crate generates:

  • .proto files 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