mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### 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.
11 lines
368 B
Rust
11 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();
|
|
}
|