lib.rs 1.38 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

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

29
#[cfg(not(feature = "service-rewr"))]
30
pub use service::{
31
32
33
34
35
36
37
38
39
	ProvideRuntimeApi, CoreApi, ParachainHost, IdentifyVariant,
	Block, self, RuntimeApiCollection, TFullClient
};

#[cfg(feature = "service-rewr")]
pub use service_new::{
	self as service,
	ProvideRuntimeApi, CoreApi, ParachainHost, IdentifyVariant,
	Block, self, RuntimeApiCollection, TFullClient
40
41
};

42
#[cfg(feature = "cli")]
Gavin Wood's avatar
Gavin Wood committed
43
pub use cli::*;
44

45
#[cfg(feature = "cli")]
Gavin Wood's avatar
Gavin Wood committed
46
pub use command::*;
47

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