lib.rs 1.12 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
20
// 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)]

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

pub use service::{
29
30
31
	self,
	ProvideRuntimeApi, CoreApi, IdentifyVariant,
	Block, 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};