Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethereum-types: make ethbloom optional #625

Merged
merged 2 commits into from Sep 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions ethereum-types/Cargo.toml
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
rust-version = "1.56.1"
ordian marked this conversation as resolved.
Show resolved Hide resolved

[dependencies]
ethbloom = { path = "../ethbloom", version = "0.12", default-features = false }
ethbloom = { path = "../ethbloom", version = "0.12", optional = true, default-features = false }
fixed-hash = { path = "../fixed-hash", version = "0.7", default-features = false, features = ["byteorder", "rustc-hex"] }
uint-crate = { path = "../uint", package = "uint", version = "0.9", default-features = false }
primitive-types = { path = "../primitive-types", version = "0.11", features = ["byteorder", "rustc-hex"], default-features = false }
Expand All @@ -22,7 +22,7 @@ scale-info = { version = "1.0", features = ["derive"], default-features = false,
serde_json = "1.0.41"

[features]
default = ["std", "rlp", "serialize"]
default = ["std", "ethbloom", "rlp", "serialize"]
std = ["uint-crate/std", "fixed-hash/std", "ethbloom/std", "primitive-types/std"]
ordian marked this conversation as resolved.
Show resolved Hide resolved
ordian marked this conversation as resolved.
Show resolved Hide resolved
serialize = ["impl-serde", "primitive-types/serde_no_std", "ethbloom/serialize"]
arbitrary = ["ethbloom/arbitrary", "fixed-hash/arbitrary", "uint-crate/arbitrary"]
Expand Down
1 change: 1 addition & 0 deletions ethereum-types/src/lib.rs
Expand Up @@ -11,6 +11,7 @@
mod hash;
mod uint;

#[cfg(feature = "ethbloom")]
pub use ethbloom::{Bloom, BloomRef, Input as BloomInput};
pub use hash::{BigEndianHash, H128, H160, H256, H264, H32, H512, H520, H64};
pub use uint::{FromDecStrErr, FromStrRadixErr, FromStrRadixErrKind, U128, U256, U512, U64};
Expand Down