mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Remove node/src/main.rs (#3969)
This commit is contained in:
committed by
Bastian Köcher
parent
7627428f44
commit
14e4cf9155
Generated
+2
-10
@@ -2377,6 +2377,7 @@ dependencies = [
|
||||
name = "node-cli"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"ctrlc 3.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -2426,6 +2427,7 @@ dependencies = [
|
||||
"tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"transaction-factory 0.0.1",
|
||||
"vergen 3.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4776,16 +4778,6 @@ dependencies = [
|
||||
"tiny-bip39 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "substrate"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"ctrlc 3.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"node-cli 2.0.0",
|
||||
"vergen 3.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "substrate-application-crypto"
|
||||
version = "2.0.0"
|
||||
|
||||
@@ -1,22 +1,3 @@
|
||||
[[bin]]
|
||||
name = "substrate"
|
||||
path = "node/src/main.rs"
|
||||
|
||||
[package]
|
||||
name = "substrate"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
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",
|
||||
@@ -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"
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
// Copyright 2015-2019 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/>.
|
||||
|
||||
use vergen::{ConstantsFlags, generate_cargo_keys};
|
||||
|
||||
const ERROR_MSG: &str = "Failed to generate metadata files";
|
||||
|
||||
fn main() {
|
||||
generate_cargo_keys(ConstantsFlags::all()).expect(ERROR_MSG);
|
||||
println!("cargo:rerun-if-changed=.git/HEAD");
|
||||
}
|
||||
@@ -5,6 +5,17 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
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"
|
||||
@@ -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" }
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user