mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Co-authored-by: Tobias Koppers <[email protected]> Co-authored-by: Sebastian Sebbie Silbermann <[email protected]>
15 lines
439 B
Rust
15 lines
439 B
Rust
fn main() -> anyhow::Result<()> {
|
|
// 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.
|
|
let cargo = vergen::CargoBuilder::default()
|
|
.target_triple(true)
|
|
.build()?;
|
|
vergen::Emitter::default()
|
|
.fail_on_error()
|
|
.add_instructions(&cargo)?
|
|
.emit()?;
|
|
|
|
Ok(())
|
|
}
|