more idiomatic std features

This commit is contained in:
Robert Habermeier
2018-01-30 19:28:57 +01:00
parent a68b187f4d
commit 8e6cb1b6e2
18 changed files with 30 additions and 30 deletions
+3 -3
View File
@@ -17,8 +17,8 @@
//! Implements the serialization and deserialization codec for polkadot runtime
//! values.
#![cfg_attr(feature = "no-std", no_std)]
#![cfg_attr(feature = "no-std", feature(alloc))]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]
mod endiansensitive;
mod slicable;
@@ -32,7 +32,7 @@ pub use self::streamreader::StreamReader;
pub use self::joiner::Joiner;
pub use self::keyedvec::KeyedVec;
#[cfg(feature = "no-std")]
#[cfg(not(feature = "std"))]
mod std {
extern crate alloc;