tenebrous-dicebot/web-ui/crate/build.rs

8 lines
213 B
Rust
Raw Permalink Normal View History

use std::fs;
use tenebrous_api::schema;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let schema_doc = schema::schema().as_schema_language();
fs::write("schema.graphql", schema_doc)?;
Ok(())
}