diff --git a/bridges/bin/millau/node/Cargo.toml b/bridges/bin/millau/node/Cargo.toml index 3432701e0d..e035bbd224 100644 --- a/bridges/bin/millau/node/Cargo.toml +++ b/bridges/bin/millau/node/Cargo.toml @@ -48,9 +48,8 @@ sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "ma substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate.git", branch = "master" } [build-dependencies] -build-script-utils = { package = "substrate-build-script-utils", version = "2.0" } +substrate-build-script-utils = "3.0.0" frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -vergen = "3.1.0" [features] default = [] diff --git a/bridges/bin/millau/node/build.rs b/bridges/bin/millau/node/build.rs index e9a10ff8ad..b0d117f37c 100644 --- a/bridges/bin/millau/node/build.rs +++ b/bridges/bin/millau/node/build.rs @@ -14,12 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Parity Bridges Common. If not, see . -use vergen::{generate_cargo_keys, ConstantsFlags}; - -const ERROR_MSG: &str = "Failed to generate metadata files"; +use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; fn main() { - generate_cargo_keys(ConstantsFlags::SHA_SHORT).expect(ERROR_MSG); + generate_cargo_keys(); - build_script_utils::rerun_if_git_head_changed(); + rerun_if_git_head_changed(); } diff --git a/bridges/bin/rialto/node/Cargo.toml b/bridges/bin/rialto/node/Cargo.toml index da602d3586..9d3e3fc16c 100644 --- a/bridges/bin/rialto/node/Cargo.toml +++ b/bridges/bin/rialto/node/Cargo.toml @@ -49,9 +49,8 @@ sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "ma substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate.git", branch = "master" } [build-dependencies] -build-script-utils = { package = "substrate-build-script-utils", version = "2.0" } +substrate-build-script-utils = "3.0.0" frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -vergen = "3.1.0" [features] default = [] diff --git a/bridges/bin/rialto/node/build.rs b/bridges/bin/rialto/node/build.rs index e9a10ff8ad..b0d117f37c 100644 --- a/bridges/bin/rialto/node/build.rs +++ b/bridges/bin/rialto/node/build.rs @@ -14,12 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Parity Bridges Common. If not, see . -use vergen::{generate_cargo_keys, ConstantsFlags}; - -const ERROR_MSG: &str = "Failed to generate metadata files"; +use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; fn main() { - generate_cargo_keys(ConstantsFlags::SHA_SHORT).expect(ERROR_MSG); + generate_cargo_keys(); - build_script_utils::rerun_if_git_head_changed(); + rerun_if_git_head_changed(); }