Skip to content

Commit ac4d308

Browse files
committed
hyperwallet: gate behind a feature flag
1 parent 3243620 commit ac4d308

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ license = "Apache-2.0"
1010

1111
[features]
1212
logging = ["dep:color-eyre", "dep:tracing", "dep:tracing-error", "dep:tracing-subscriber"]
13+
hyperwallet = []
1314
simulation-mode = []
1415

1516
[dependencies]
@@ -25,19 +26,19 @@ alloy = { version = "0.8.1", features = [
2526
"consensus",
2627
"network",
2728
] }
28-
hex = "0.4.3"
29-
sha3 = "0.10.8"
3029
anyhow = "1.0"
3130
base64 = "0.22.1"
3231
bincode = "1.3.3"
3332
color-eyre = { version = "0.6", features = ["capture-spantrace"], optional = true }
33+
hex = "0.4.3"
3434
http = "1.0.0"
3535
mime_guess = "2.0"
36-
serde = { version = "1.0", features = ["derive"] }
37-
serde_json = "1.0.120"
3836
rand = "0.8"
3937
regex = "1.11.1"
4038
rmp-serde = "1.1.2"
39+
serde = { version = "1.0", features = ["derive"] }
40+
serde_json = "1.0.120"
41+
sha3 = "0.10.8"
4142
thiserror = "1.0"
4243
tracing = { version = "0.1", optional = true }
4344
tracing-error = { version = "0.2", optional = true }

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pub mod logging;
5656
pub mod net;
5757
pub mod sign;
5858
/// Low-level Ethereum signing operations and key management.
59+
#[cfg(feature = "hyperwallet")]
5960
pub mod signer;
6061
/// Interact with the sqlite module
6162
///
@@ -72,11 +73,13 @@ pub mod timer;
7273
/// `vfs:distro:sys` to use this module.
7374
pub mod vfs;
7475
/// Ethereum wallet management with transaction preparation and submission.
76+
#[cfg(feature = "hyperwallet")]
7577
pub mod wallet;
7678

7779
/// A set of types and macros for writing "script" processes.
7880
pub mod scripting;
7981

82+
#[cfg(feature = "hyperwallet")]
8083
pub mod hyperwallet_client;
8184

8285
mod types;

0 commit comments

Comments
 (0)