mirror of
				https://github.com/roc-lang/roc.git
				synced 2025-10-30 20:57:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use std::fs;
 | |
| 
 | |
| use roc_checkmate_schema::AllEvents;
 | |
| 
 | |
| fn main() {
 | |
|     println!("cargo:rerun-if-changed=../checkmate_schema");
 | |
|     let schema = AllEvents::schema();
 | |
|     fs::write(
 | |
|         "schema.json",
 | |
|         serde_json::to_string_pretty(&schema).unwrap(),
 | |
|     )
 | |
|     .unwrap();
 | |
| }
 | 
