allow polkadot-primitives to compile on nightly

This commit is contained in:
Robert Habermeier
2018-01-31 22:27:07 +01:00
parent 29c3a585a1
commit 0035369f82
9 changed files with 58 additions and 30 deletions
+8 -1
View File
@@ -18,6 +18,9 @@
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]
extern crate rustc_hex;
extern crate serde;
extern crate ring;
@@ -35,7 +38,7 @@ extern crate serde_derive;
#[macro_use]
extern crate uint as uint_crate;
#[cfg(feature="std")]
#[cfg(feature = "std")]
extern crate core;
#[cfg(test)]
extern crate polkadot_serializer;
@@ -43,6 +46,10 @@ extern crate polkadot_serializer;
#[macro_use]
extern crate pretty_assertions;
#[cfg(not(feature = "std"))]
#[macro_use]
extern crate alloc;
mod bytes;
pub mod block;
pub mod contract;