Implement construct_runtime! macro (#751)

* Make `system` module renamable in `impl_outer_event!`

* Implement `construct_runtime!` macro

This macro generates code for calling all the common `impl_outer_*` macros.

* Add documentation

* Fixes wrong declaration of `contract`

* Update dependencies to work on `no_std`

* One more `Cargo.lock` update

* Address comments
This commit is contained in:
Bastian Köcher
2018-09-17 17:27:22 +02:00
committed by Gav Wood
parent ea1b9bf026
commit 597ea41cd4
8 changed files with 1180 additions and 156 deletions
+7
View File
@@ -32,6 +32,8 @@ extern crate sr_io as runtime_io;
extern crate substrate_primitives as primitives;
extern crate substrate_metadata;
extern crate mashup;
#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;
@@ -65,6 +67,8 @@ mod event;
pub mod metadata;
#[macro_use]
mod origin;
#[macro_use]
mod runtime;
pub use self::storage::{StorageVec, StorageList, StorageValue, StorageMap};
pub use self::hashable::Hashable;
@@ -122,3 +126,6 @@ macro_rules! assert_ok {
#[derive(Clone, Eq, PartialEq)]
#[cfg_attr(feature = "std", derive(Debug))]
pub enum Void {}
#[doc(hidden)]
pub use mashup::*;