diff --git a/ethbloom/Cargo.toml b/ethbloom/Cargo.toml index 215e669..f99c764 100644 --- a/ethbloom/Cargo.toml +++ b/ethbloom/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/paritytech/primitives" [dependencies] tiny-keccak = "1.4" crunchy = { version = "0.1.6", features = ["limit_256"] } -fixed-hash = { version = "0.2.1", path = "../fixed-hash" } +fixed-hash = { version = "0.2.1", path = "../fixed-hash", default-features = false } ethereum-types-serialize = { version = "0.2.1", path = "../serialize", optional = true } serde = { version = "1.0", optional = true } diff --git a/ethbloom/src/lib.rs b/ethbloom/src/lib.rs index 1ea977b..78a8d77 100644 --- a/ethbloom/src/lib.rs +++ b/ethbloom/src/lib.rs @@ -47,9 +47,12 @@ extern crate serde; #[cfg(feature="serialize")] use serde::{Serialize, Serializer, Deserialize, Deserializer}; -use core::{ops, mem, str}; +use core::{ops, mem}; use tiny_keccak::keccak256; +#[cfg(feature="std")] +use core::str; + // 3 according to yellowpaper const BLOOM_BITS: u32 = 3; const BLOOM_SIZE: usize = 256; diff --git a/ethereum-types/Cargo.toml b/ethereum-types/Cargo.toml index dc922cf..46decc7 100644 --- a/ethereum-types/Cargo.toml +++ b/ethereum-types/Cargo.toml @@ -11,12 +11,12 @@ build = "build.rs" rustc_version = "0.2" [dependencies] -uint = { path = "../uint", version = "0.2.1" } -fixed-hash = { path = "../fixed-hash", version = "0.2" } -ethbloom = { path = "../ethbloom", version = "0.5.0" } crunchy = "0.1.5" +ethbloom = { path = "../ethbloom", version = "0.5.0", default-features = false } ethereum-types-serialize = { version = "0.2.1", path = "../serialize", optional = true } +fixed-hash = { path = "../fixed-hash", version = "0.2" } serde = { version = "1.0", optional = true } +uint = { path = "../uint", version = "0.2.1", default-features = false } [features] default = ["std", "heapsizeof", "serialize"]