mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 05:47:58 +00:00
c162fc5ff1
* Remove error_chain * Expunge error-chain from rpc and service. * Expunge from transaction pool. * Expunge from node/cli * Expunge from keystore. * Remove some boilerplate. * Fix remaining stuff. * Improve on deprecation message. * Fix issues. * Fix trnsaction pool tests. * Fix the rest. * Fix borked merge. * Update lock
28 lines
623 B
Rust
28 lines
623 B
Rust
//! Substrate Node Template CLI library.
|
|
|
|
#![warn(missing_docs)]
|
|
#![warn(unused_extern_crates)]
|
|
|
|
mod chain_spec;
|
|
mod service;
|
|
mod cli;
|
|
|
|
pub use substrate_cli::{VersionInfo, IntoExit, error};
|
|
|
|
fn main() {
|
|
let version = VersionInfo {
|
|
name: "Substrate Node",
|
|
commit: env!("VERGEN_SHA_SHORT"),
|
|
version: env!("CARGO_PKG_VERSION"),
|
|
executable_name: "node-template",
|
|
author: "Anonymous",
|
|
description: "Template Node",
|
|
support_url: "support.anonymous.an",
|
|
};
|
|
|
|
if let Err(e) = cli::run(::std::env::args(), cli::Exit, version) {
|
|
eprintln!("Error starting the node: {}\n\n{:?}", e, e);
|
|
std::process::exit(1)
|
|
}
|
|
}
|