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

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

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

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

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