cynic-codegen 3.14.0

Procedural macro code generation for cynic - a code first GraphQL client for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    // Run registered benchmarks.
    divan::main();
}

const SCHEMA: &str = include_str!("../../schemas/github.graphql");

#[divan::bench]
fn schema_registration() -> cynic_codegen::registration::SchemaRegistration<'static> {
    cynic_codegen::register_schema("github")
        .dry_run()
        .from_sdl(SCHEMA)
        .unwrap()
}