mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
508c52a08a
- Add new crate `substrate-build-script-utils` to unify the code of `node`, `node-template` and `polkadot-node`. - The `node-cli` build script needs to search upwards for the `.git/HEAD` file to find it.
12 lines
278 B
Rust
12 lines
278 B
Rust
use std::{env, path::PathBuf};
|
|
|
|
use vergen::{ConstantsFlags, generate_cargo_keys};
|
|
|
|
const ERROR_MSG: &str = "Failed to generate metadata files";
|
|
|
|
fn main() {
|
|
generate_cargo_keys(ConstantsFlags::SHA_SHORT).expect(ERROR_MSG);
|
|
|
|
build_script_utils::rerun_if_git_head_changed();
|
|
}
|