make it work on no-std by disabling default ft
This commit is contained in:
parent
ffa7c44990
commit
22128dd159
|
@ -11,7 +11,7 @@ repository = "https://github.com/paritytech/primitives"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tiny-keccak = "1.4"
|
tiny-keccak = "1.4"
|
||||||
crunchy = { version = "0.1.6", features = ["limit_256"] }
|
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 }
|
ethereum-types-serialize = { version = "0.2.1", path = "../serialize", optional = true }
|
||||||
serde = { version = "1.0", optional = true }
|
serde = { version = "1.0", optional = true }
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,12 @@ extern crate serde;
|
||||||
#[cfg(feature="serialize")]
|
#[cfg(feature="serialize")]
|
||||||
use serde::{Serialize, Serializer, Deserialize, Deserializer};
|
use serde::{Serialize, Serializer, Deserialize, Deserializer};
|
||||||
|
|
||||||
use core::{ops, mem, str};
|
use core::{ops, mem};
|
||||||
use tiny_keccak::keccak256;
|
use tiny_keccak::keccak256;
|
||||||
|
|
||||||
|
#[cfg(feature="std")]
|
||||||
|
use core::str;
|
||||||
|
|
||||||
// 3 according to yellowpaper
|
// 3 according to yellowpaper
|
||||||
const BLOOM_BITS: u32 = 3;
|
const BLOOM_BITS: u32 = 3;
|
||||||
const BLOOM_SIZE: usize = 256;
|
const BLOOM_SIZE: usize = 256;
|
||||||
|
|
|
@ -11,12 +11,12 @@ build = "build.rs"
|
||||||
rustc_version = "0.2"
|
rustc_version = "0.2"
|
||||||
|
|
||||||
[dependencies]
|
[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"
|
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 }
|
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 }
|
serde = { version = "1.0", optional = true }
|
||||||
|
uint = { path = "../uint", version = "0.2.1", default-features = false }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std", "heapsizeof", "serialize"]
|
default = ["std", "heapsizeof", "serialize"]
|
||||||
|
|
Loading…
Reference in New Issue