Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 0 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
[[bin]]
name = "substrate"
path = "node/src/main.rs"

[package]
name = "substrate"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
build = "build.rs"
edition = "2018"

[dependencies]
cli = { package = "node-cli", path = "node/cli" }
futures = "0.1.29"
ctrlc = { version = "3.1.3", features = ["termination"] }

[build-dependencies]
vergen = "3.0.4"

[workspace]
members = [
"core/authority-discovery",
Expand Down Expand Up @@ -124,12 +105,6 @@ members = [
"test-utils/chain-spec-builder",
]

[badges]
travis-ci = { repository = "paritytech/substrate", branch = "master" }
maintenance = { status = "actively-developed" }
is-it-maintained-issue-resolution = { repository = "paritytech/substrate" }
is-it-maintained-open-issues = { repository = "paritytech/substrate" }

[profile.release]
# Substrate runtime requires unwinding.
panic = "unwind"
24 changes: 0 additions & 24 deletions build.rs

This file was deleted.

13 changes: 13 additions & 0 deletions node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ authors = ["Parity Technologies <[email protected]>"]
description = "Substrate node implementation in Rust."
build = "build.rs"
edition = "2018"
default-run = "substrate"

[badges]
travis-ci = { repository = "paritytech/substrate", branch = "master" }
maintenance = { status = "actively-developed" }
is-it-maintained-issue-resolution = { repository = "paritytech/substrate" }
is-it-maintained-open-issues = { repository = "paritytech/substrate" }

[[bin]]
name = "substrate"
path = "bin/main.rs"

[dependencies]
log = "0.4.8"
Expand Down Expand Up @@ -51,6 +62,7 @@ im_online = { package = "srml-im-online", path = "../../srml/im-online", default
serde = { version = "1.0.101", features = [ "derive" ] }
client_db = { package = "substrate-client-db", path = "../../core/client/db", features = ["kvdb-rocksdb"] }
offchain = { package = "substrate-offchain", path = "../../core/offchain" }
ctrlc = { version = "3.1.3", features = ["termination"] }

[dev-dependencies]
keystore = { package = "substrate-keystore", path = "../../core/keystore" }
Expand All @@ -63,3 +75,4 @@ tempfile = "3.1.0"
[build-dependencies]
cli = { package = "substrate-cli", path = "../../core/cli" }
structopt = "0.3.3"
vergen = "3.0.4"
2 changes: 1 addition & 1 deletion node/src/main.rs → node/cli/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ fn main() -> Result<(), cli::error::Error> {
support_url: "https://github.com/paritytech/substrate/issues/new",
};

cli::run(std::env::args(), Exit, version)
node_cli::run(std::env::args(), Exit, version)
}
6 changes: 4 additions & 2 deletions node/cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.

use cli::{NoCustom, CoreParams};

use std::{fs, env, path::Path};

use structopt::{StructOpt, clap::Shell};
use vergen::{ConstantsFlags, generate_cargo_keys};

fn main() {
build_shell_completion();
generate_cargo_keys(ConstantsFlags::all())
.expect("Failed to generate metadata files");
println!("cargo:rerun-if-changed=.git/HEAD");
}

/// Build shell completion scripts for all known shells
Expand Down