lib.rs 1.22 KB
Newer Older
Shawn Tabrizi's avatar
Shawn Tabrizi committed
1
// Copyright 2017-2020 Parity Technologies (UK) Ltd.
Gav's avatar
Gav committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This file is part of Polkadot.

// Polkadot 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.

// Polkadot 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 Polkadot.  If not, see <http://www.gnu.org/licenses/>.

//! Polkadot CLI library.

#![warn(missing_docs)]
Arkadiy Paronyan's avatar
Arkadiy Paronyan committed
20
#![warn(unused_extern_crates)]
Gav's avatar
Gav committed
21

Gav Wood's avatar
Gav Wood committed
22
mod chain_spec;
23
24
#[cfg(feature = "browser")]
mod browser;
25
#[cfg(feature = "cli")]
Gavin Wood's avatar
Gavin Wood committed
26
27
28
mod cli;
#[cfg(feature = "cli")]
mod command;
29
30

pub use service::{
Gavin Wood's avatar
Gavin Wood committed
31
	AbstractService, ProvideRuntimeApi, CoreApi, ParachainHost, IsKusama,
32
	Block, self, RuntimeApiCollection, TFullClient
33
34
};

35
#[cfg(feature = "cli")]
Gavin Wood's avatar
Gavin Wood committed
36
pub use cli::*;
37

38
#[cfg(feature = "cli")]
Gavin Wood's avatar
Gavin Wood committed
39
pub use command::*;
40

Gavin Wood's avatar
Gavin Wood committed
41
pub use chain_spec::*;
42

43
#[cfg(feature = "cli")]
44
pub use sc_cli::{VersionInfo, Error, Result};