Skip to content
lib.rs 2.06 KiB
Newer Older
// Copyright 2017-2019 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

#[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;
pub mod leaves;
#[cfg(feature = "std")]
pub mod children;
Gav Wood's avatar
Gav Wood committed
mod client;
mod notifications;
pub use crate::blockchain::Info as ChainInfo;
pub use crate::call_executor::{CallExecutor, LocalCallExecutor};
pub use crate::client::{
	new_with_backend,
	BlockBody, BlockStatus, ImportNotifications, FinalityNotifications, BlockchainEvents,
	BlockImportNotification, Client, ClientInfo, ChainHead, ExecutionStrategies,
pub use crate::notifications::{StorageEventStream, StorageChangeSet};
pub use state_machine::ExecutionStrategy;
pub use crate::leaves::LeafSet;

#[doc(inline)]
pub use sr_api_macros::{decl_runtime_apis, impl_runtime_apis};