From 24479cd7f503c3ddfd1599907cdcffd87bcc8bcc Mon Sep 17 00:00:00 2001
From: Gav Wood <github@gavwood.com>
Date: Tue, 18 Sep 2018 09:12:49 +0200
Subject: [PATCH] Substrate is the one (#759)

---
 substrate/Cargo.toml      | 22 +++++++++++++++++++++-
 substrate/node/Cargo.toml | 18 ------------------
 substrate/node/build.rs   | 24 ------------------------
 3 files changed, 21 insertions(+), 43 deletions(-)
 delete mode 100644 substrate/node/Cargo.toml
 delete mode 100644 substrate/node/build.rs

diff --git a/substrate/Cargo.toml b/substrate/Cargo.toml
index 83979bb2b77..d8b6e280b4a 100644
--- a/substrate/Cargo.toml
+++ b/substrate/Cargo.toml
@@ -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",
diff --git a/substrate/node/Cargo.toml b/substrate/node/Cargo.toml
deleted file mode 100644
index 8746954b5a8..00000000000
--- a/substrate/node/Cargo.toml
+++ /dev/null
@@ -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"
diff --git a/substrate/node/build.rs b/substrate/node/build.rs
deleted file mode 100644
index 4e48353aeac..00000000000
--- a/substrate/node/build.rs
+++ /dev/null
@@ -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");
-}
-- 
GitLab