Don't re-compile on every cargo run (#4019)

- 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.
This commit is contained in:
Bastian Köcher
2019-11-05 19:36:10 +01:00
committed by GitHub
parent 350e72dac5
commit 508c52a08a
7 changed files with 66 additions and 20 deletions
+6
View File
@@ -2672,6 +2672,7 @@ dependencies = [
"srml-transaction-payment 2.0.0",
"structopt 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-basic-authorship 2.0.0",
"substrate-build-script-utils 2.0.0",
"substrate-chain-spec 2.0.0",
"substrate-cli 2.0.0",
"substrate-client 2.0.0",
@@ -2836,6 +2837,7 @@ dependencies = [
"sr-io 2.0.0",
"sr-primitives 2.0.0",
"substrate-basic-authorship 2.0.0",
"substrate-build-script-utils 2.0.0",
"substrate-cli 2.0.0",
"substrate-client 2.0.0",
"substrate-consensus-aura 2.0.0",
@@ -5219,6 +5221,10 @@ dependencies = [
"sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "substrate-build-script-utils"
version = "2.0.0"
[[package]]
name = "substrate-chain-spec"
version = "2.0.0"