parse ChunkStatus at compile time
This commit is contained in:
1 parent
7b205fe108
commit
da268b548b
9 files changed
+49
-34
No files matched your search
@@ -3,6 +3,7 @@ use std::{env, fs, path::Path, process::Command};
|
||||
use proc_macro2::{Span, TokenStream};
|
||||
use syn::Ident;
|
||||
|
||||
mod chunk_status;
|
||||
mod packet;
|
||||
mod particle;
|
||||
mod screen;
|
||||
@@ -13,6 +14,7 @@ pub fn main() {
|
||||
write_generated_file(screen::build(), "screen.rs");
|
||||
write_generated_file(particle::build(), "particle.rs");
|
||||
write_generated_file(sound::build(), "sound.rs");
|
||||
write_generated_file(chunk_status::build(), "chunk_status.rs");
|
||||
}
|
||||
|
||||
pub fn write_generated_file(content: TokenStream, out_file: &str) {
|
||||
|
||||
Reference in new issue
Block a user