Skip to content
lib.rs 1.68 KiB
Newer Older
Gav's avatar
Gav committed
// Copyright 2017 Parity Technologies (UK) Ltd.
// This file is part of Substrate Demo.

// Substrate Demo 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 Demo 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 Demo.  If not, see <http://www.gnu.org/licenses/>.

Gav Wood's avatar
Gav Wood committed
//! The Substrate Demo runtime. This can be compiled with ``#[no_std]`, ready for Wasm.
Gav's avatar
Gav committed

#![cfg_attr(not(feature = "std"), no_std)]

Gav's avatar
Gav committed
#[allow(unused_imports)] #[macro_use] extern crate substrate_runtime_std as rstd;
Gav's avatar
Gav committed
#[macro_use] extern crate substrate_runtime_io as runtime_io;
#[macro_use] extern crate substrate_runtime_support as runtime_support;
Gav's avatar
Gav committed
#[cfg(any(feature = "std", test))] extern crate substrate_keyring as keyring;
Gav's avatar
Gav committed

Gav Wood's avatar
Gav Wood committed
#[cfg(feature = "std")] #[macro_use] extern crate serde_derive;
#[cfg(feature = "std")] extern crate serde;

Gav's avatar
Gav committed
#[cfg(feature = "std")] extern crate rustc_hex;

extern crate substrate_codec as codec;
#[cfg(feature = "std")] #[macro_use] extern crate substrate_primitives as primitives;
extern crate demo_primitives;

#[cfg(test)] #[macro_use] extern crate hex_literal;

extern crate integer_sqrt;

Gav Wood's avatar
Gav Wood committed
#[macro_use] pub mod dispatch;

pub mod block;
pub mod transaction;
Gav's avatar
Gav committed
pub mod environment;
pub mod runtime;
pub mod api;

#[cfg(feature = "std")] pub mod genesismap;