chore: embed build time information with shadow-rs
This commit is contained in:
7
build.rs
7
build.rs
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user