From 382754e54ce4a61bcea76f60401c9bcdaf33ce66 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Wed, 5 Apr 2017 23:41:49 -0700 Subject: [PATCH] Add workspace support for all crates --- Cargo.toml | 7 +++++++ api/Cargo.toml | 1 + chain/Cargo.toml | 1 + core/Cargo.toml | 1 + grin/Cargo.toml | 1 + p2p/Cargo.toml | 1 + src/bin/node.rs | 18 ++++++++++++++++++ store/Cargo.toml | 1 + util/Cargo.toml | 1 + 9 files changed, 32 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/bin/node.rs diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000..fad25fe0e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "grin" +version = "0.1.0" +authors = ["Ignotus Peverell "] + +[workspace] +members = ["api", "chain", "core", "grin", "p2p", "store", "util"] diff --git a/api/Cargo.toml b/api/Cargo.toml index 07c3987a1..271af69fa 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -2,6 +2,7 @@ name = "grin_api" version = "0.1.0" authors = ["Ignotus Peverell "] +workspace = ".." [dependencies] grin_chain = { path = "../chain" } diff --git a/chain/Cargo.toml b/chain/Cargo.toml index 021b9de8b..f57d895cf 100644 --- a/chain/Cargo.toml +++ b/chain/Cargo.toml @@ -2,6 +2,7 @@ name = "grin_chain" version = "0.1.0" authors = ["Ignotus Peverell "] +workspace = ".." [dependencies] bitflags = "^0.7.0" diff --git a/core/Cargo.toml b/core/Cargo.toml index 378da1e72..5c772b3c5 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -2,6 +2,7 @@ name = "grin_core" version = "0.1.0" authors = ["Ignotus Peverell "] +workspace = ".." [dependencies] bitflags = "~0.7.0" diff --git a/grin/Cargo.toml b/grin/Cargo.toml index 737f5a4f0..d4f6bb5b4 100644 --- a/grin/Cargo.toml +++ b/grin/Cargo.toml @@ -2,6 +2,7 @@ name = "grin_grin" version = "0.1.0" authors = ["Ignotus Peverell "] +workspace = ".." [dependencies] grin_api = { path = "../api" } diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml index 1a03de726..97902e9cc 100644 --- a/p2p/Cargo.toml +++ b/p2p/Cargo.toml @@ -2,6 +2,7 @@ name = "grin_p2p" version = "0.1.0" authors = ["Ignotus Peverell "] +workspace = ".." [dependencies] bitflags = "^0.7.0" diff --git a/src/bin/node.rs b/src/bin/node.rs new file mode 100644 index 000000000..bebf83211 --- /dev/null +++ b/src/bin/node.rs @@ -0,0 +1,18 @@ +// Copyright 2016 The Grin Developers +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Main for building the binary of a Grin peer-to-peer node. + +fn main() { +} diff --git a/store/Cargo.toml b/store/Cargo.toml index 6479eaae0..3b673f9a6 100644 --- a/store/Cargo.toml +++ b/store/Cargo.toml @@ -2,6 +2,7 @@ name = "grin_store" version = "0.1.0" authors = ["Ignotus Peverell "] +workspace = ".." [dependencies] byteorder = "^0.5" diff --git a/util/Cargo.toml b/util/Cargo.toml index a21d5e340..c03660b01 100644 --- a/util/Cargo.toml +++ b/util/Cargo.toml @@ -2,3 +2,4 @@ name = "grin_util" version = "0.1.0" authors = ["Ignotus Peverell "] +workspace = ".."