Skip to content

Commit 3b2808b

Browse files
committed
fix(forge): make foundry-wallets optional dependency
1 parent 2fa2304 commit 3b2808b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

crates/forge/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ forge-script.workspace = true
5050
forge-sol-macro-gen.workspace = true
5151
foundry-cli.workspace = true
5252
foundry-debugger.workspace = true
53-
foundry-wallets.workspace = true
53+
foundry-wallets = { workspace = true, optional = true }
5454

5555
alloy-chains.workspace = true
5656
alloy-dyn-abi.workspace = true
@@ -120,7 +120,7 @@ asm-keccak = ["alloy-primitives/asm-keccak"]
120120
jemalloc = ["foundry-cli/jemalloc"]
121121
mimalloc = ["foundry-cli/mimalloc"]
122122
tracy-allocator = ["foundry-cli/tracy-allocator"]
123-
aws-kms = ["foundry-wallets/aws-kms"]
124-
gcp-kms = ["foundry-wallets/gcp-kms"]
125-
turnkey = ["foundry-wallets/turnkey"]
123+
aws-kms = ["dep:foundry-wallets", "foundry-wallets/aws-kms"]
124+
gcp-kms = ["dep:foundry-wallets", "foundry-wallets/gcp-kms"]
125+
turnkey = ["dep:foundry-wallets", "foundry-wallets/turnkey"]
126126
isolate-by-default = ["foundry-config/isolate-by-default"]

crates/forge/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ extern crate foundry_common;
99
#[macro_use]
1010
extern crate tracing;
1111

12+
// Required for optional features (aws-kms, gcp-kms, turnkey)
13+
#[cfg(any(feature = "aws-kms", feature = "gcp-kms", feature = "turnkey"))]
14+
use foundry_wallets as _;
15+
1216
pub mod args;
1317
pub mod cmd;
1418
pub mod opts;

0 commit comments

Comments
 (0)