Substrate is the one (#759)

This commit is contained in:
Gav Wood
2018-09-18 09:12:49 +02:00
committed by GitHub
parent f10d8e177d
commit 24479cd7f5
3 changed files with 21 additions and 43 deletions
+21 -1
View File
@@ -1,3 +1,24 @@
[[bin]]
name = "substrate"
path = "node/src/main.rs"
[package]
name = "substrate"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"
[dependencies]
error-chain = "0.12"
node-cli = { path = "node/cli" }
futures = "0.1"
ctrlc = { version = "3.0", features = ["termination"] }
[build-dependencies]
vergen = "0.1"
[workspace]
members = [
"core/bft",
@@ -38,7 +59,6 @@ members = [
"core/test-runtime",
"core/telemetry",
"core/keystore",
"node",
"node/cli",
"node/api",
"node/consensus",
-18
View File
@@ -1,18 +0,0 @@
[[bin]]
name = "substrate"
path = "src/main.rs"
[package]
name = "substrate"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"
[dependencies]
error-chain = "0.12"
node-cli = { path = "cli" }
futures = "0.1"
ctrlc = { version = "3.0", features = ["termination"] }
[build-dependencies]
vergen = "0.1"
-24
View File
@@ -1,24 +0,0 @@
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Substrate is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
extern crate vergen;
const ERROR_MSG: &'static str = "Failed to generate metadata files";
fn main() {
vergen::vergen(vergen::SHORT_SHA).expect(ERROR_MSG);
println!("cargo:rerun-if-changed=../../.git/HEAD");
}