mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-25 07:11:31 +11:00
23 lines
626 B
Rust
23 lines
626 B
Rust
|
use valence_build_utils::{rerun_if_changed, write_generated_file};
|
||
|
|
||
|
mod item;
|
||
|
mod packet_id;
|
||
|
mod sound;
|
||
|
mod translation_key;
|
||
|
|
||
|
pub fn main() -> anyhow::Result<()> {
|
||
|
rerun_if_changed([
|
||
|
"../../extracted/items.json",
|
||
|
"../../extracted/packets.json",
|
||
|
"../../extracted/sounds.json",
|
||
|
"../../extracted/translation_keys.json",
|
||
|
]);
|
||
|
|
||
|
write_generated_file(item::build()?, "item.rs")?;
|
||
|
write_generated_file(sound::build()?, "sound.rs")?;
|
||
|
write_generated_file(translation_key::build()?, "translation_key.rs")?;
|
||
|
write_generated_file(packet_id::build()?, "packet_id.rs")?;
|
||
|
|
||
|
Ok(())
|
||
|
}
|