Skip to content
lib.rs 3.21 KiB
Newer Older
// Copyright 2017-2018 Parity Technologies (UK) Ltd.
Tomasz Drwięga's avatar
Tomasz Drwięga committed

// Substrate is free software: you can redistribute it and/or modify
Tomasz Drwięga's avatar
Tomasz Drwięga committed
// 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.

// Substrate is distributed in the hope that it will be useful,
Tomasz Drwięga's avatar
Tomasz Drwięga committed
// 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 Substrate.  If not, see <http://www.gnu.org/licenses/>.
Tomasz Drwięga's avatar
Tomasz Drwięga committed

Gav Wood's avatar
Gav Wood committed
//! Substrate Client and associated logic.
Tomasz Drwięga's avatar
Tomasz Drwięga committed

#![cfg_attr(not(feature = "std"), no_std)]
Tomasz Drwięga's avatar
Tomasz Drwięga committed
#![warn(missing_docs)]
#![recursion_limit="128"]
Tomasz Drwięga's avatar
Tomasz Drwięga committed

extern crate substrate_trie as trie;
Gav Wood's avatar
Gav Wood committed
extern crate parity_codec as codec;
extern crate substrate_primitives as primitives;
Gav Wood's avatar
Gav Wood committed
extern crate sr_primitives as runtime_primitives;
extern crate substrate_state_machine as state_machine;
extern crate substrate_consensus_common as consensus;
extern crate sr_version as runtime_version;
extern crate sr_std as rstd;
#[cfg(test)]
extern crate substrate_keyring as keyring;
#[cfg(test)]
extern crate substrate_test_client as test_client;
#[cfg(feature = "std")]
#[macro_use]
extern crate substrate_telemetry;
#[cfg(feature = "std")]
#[macro_use]
extern crate slog;	// needed until we can reexport `slog_info` from `substrate_telemetry`
Tomasz Drwięga's avatar
Tomasz Drwięga committed

extern crate fnv;
Arkadiy Paronyan's avatar
Arkadiy Paronyan committed
extern crate futures;
extern crate hash_db;
extern crate heapsize;
extern crate kvdb;
#[cfg(feature = "std")]
#[macro_use]
extern crate error_chain;
#[cfg(feature = "std")]
#[macro_use]
extern crate log;
#[cfg(feature = "std")]
#[cfg_attr(test, macro_use)]
extern crate substrate_executor as executor;
#[cfg(test)]
#[macro_use]
extern crate hex_literal;
#[cfg(feature = "std")]
#[cfg(test)]
extern crate kvdb_memorydb;
Tomasz Drwięga's avatar
Tomasz Drwięga committed

#[macro_use]
pub mod runtime_api;
#[cfg(feature = "std")]
Tomasz Drwięga's avatar
Tomasz Drwięga committed
pub mod error;
pub mod blockchain;
pub mod backend;
pub mod in_mem;
pub mod block_builder;
mod leaves;
Gav Wood's avatar
Gav Wood committed
mod client;
mod notifications;
pub use blockchain::Info as ChainInfo;
pub use call_executor::{CallResult, CallExecutor, LocalCallExecutor};
	new_with_backend,
	BlockBody, BlockStatus, ImportNotifications, FinalityNotifications, BlockchainEvents,
	BlockImportNotification, Client, ClientInfo, ChainHead,
pub use notifications::{StorageEventStream, StorageChangeSet};
pub use state_machine::ExecutionStrategy;
pub use leaves::LeafSet;