chore: embed build time information with shadow-rs

This commit is contained in:
2026-05-06 19:24:13 -04:00
parent 906ddec843
commit bb51f1cc63
4 changed files with 102 additions and 0 deletions

View File

@@ -1,7 +1,14 @@
use shadow_rs::{BuildPattern, ShadowBuilder};
fn main() {
capnpc::CompilerCommand::new()
.file("bot.capnp")
.file("user.capnp")
.run()
.expect("couldn't compile capnproto schemas");
ShadowBuilder::builder()
.build_pattern(BuildPattern::RealTime)
.build()
.expect("couldn't embed build time information");
}