rsnext/packages/next-swc/crates/next-api/build.rs
OJ Kwon 974accc2c7
feat(turbopack): embed build time info, emits next features telemetry event (#53028)
### What?

closes WEB-1301. To collect some information inside of rust binary, embed it as build-time constant. It supersedes existing target triple embedding as well.
2023-07-26 17:49:34 +00:00

10 lines
368 B
Rust

use turbopack_binding::turbo::tasks_build::generate_register;
fn main() {
// Generates, stores build-time information as static values.
// There are some places relying on correct values for this (i.e telemetry),
// So failing build if this fails.
shadow_rs::new().expect("Should able to generate build time information");
generate_register();
}