mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 13:07:56 +00:00
037f9dde10
* docs: Remove safe-mix since is no longer local dependency * docs: Fix existing packages link. Still only includes Substrate Core * docs: Remove empty package Readmes. Remove old docs links. Rename to Readme * docs: Remove link to old docs * misc: Merge latest from master. Renaem to sr-metadata. Fix list of RustDoc package names * Rename substrate-metadata to sr-metadata, since it is in the "srml" subdirectory * Change example to use package name that opens all packages in RustDocs * Fix list of packages names that are available to open in RustDocs * fix typo * fix ordering of CLI options and add missing backslash
76 lines
2.4 KiB
Rust
76 lines
2.4 KiB
Rust
// Copyright 2017-2018 Parity Technologies (UK) Ltd.
|
|
// This file is part of Substrate.
|
|
|
|
// Substrate 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.
|
|
|
|
// Substrate 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 Substrate. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Substrate Client and associated logic.
|
|
|
|
#![warn(missing_docs)]
|
|
#![recursion_limit="128"]
|
|
|
|
extern crate substrate_trie as trie;
|
|
extern crate parity_codec as codec;
|
|
extern crate substrate_primitives as primitives;
|
|
extern crate sr_primitives as runtime_primitives;
|
|
extern crate substrate_state_machine as state_machine;
|
|
extern crate substrate_consensus_common as consensus;
|
|
#[cfg(test)] extern crate substrate_keyring as keyring;
|
|
#[cfg(test)] extern crate substrate_test_client as test_client;
|
|
#[macro_use] extern crate substrate_telemetry;
|
|
#[macro_use] extern crate slog; // needed until we can reexport `slog_info` from `substrate_telemetry`
|
|
|
|
extern crate fnv;
|
|
extern crate futures;
|
|
extern crate parking_lot;
|
|
extern crate hash_db;
|
|
extern crate heapsize;
|
|
extern crate kvdb;
|
|
extern crate sr_api;
|
|
|
|
#[macro_use] extern crate error_chain;
|
|
#[macro_use] extern crate log;
|
|
#[cfg_attr(test, macro_use)] extern crate substrate_executor as executor;
|
|
#[cfg(test)] #[macro_use] extern crate hex_literal;
|
|
#[cfg(test)] extern crate kvdb_memorydb;
|
|
|
|
pub mod error;
|
|
pub mod blockchain;
|
|
pub mod backend;
|
|
pub mod cht;
|
|
pub mod in_mem;
|
|
pub mod genesis;
|
|
pub mod block_builder;
|
|
pub mod light;
|
|
mod leaves;
|
|
mod call_executor;
|
|
mod client;
|
|
mod notifications;
|
|
|
|
pub use blockchain::Info as ChainInfo;
|
|
pub use call_executor::{CallResult, CallExecutor, LocalCallExecutor};
|
|
pub use client::{
|
|
new_with_backend,
|
|
new_in_mem,
|
|
BlockBody, BlockStatus, ImportNotifications, FinalityNotifications, BlockchainEvents,
|
|
Client, ClientInfo, ChainHead,
|
|
};
|
|
pub use notifications::{StorageEventStream, StorageChangeSet};
|
|
pub use state_machine::ExecutionStrategy;
|
|
pub use leaves::LeafSet;
|
|
|
|
/// Traits for interfacing with the runtime from the client.
|
|
pub mod runtime_api {
|
|
pub use sr_api::*;
|
|
}
|