Skip to content

Commit 9b9249c

Browse files
authored
fix: add aws as a non-default feature to shrink the dep tree (#65)
1 parent 0e9dfa5 commit 9b9249c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "init4-bin-base"
44
description = "Internal utilities for binaries produced by the init4 team"
55
keywords = ["init4", "bin", "base"]
66

7-
version = "0.11.0"
7+
version = "0.12.0"
88
edition = "2021"
99
rust-version = "1.81"
1010
authors = ["init4", "James Prestwich"]
@@ -20,7 +20,7 @@ signet-constants = { version = "0.10.0" }
2020
signet-tx-cache = { version = "0.10.0", optional = true }
2121

2222
# alloy
23-
alloy = { version = "1.0.25", optional = true, default-features = false, features = ["std", "signer-aws", "signer-local", "consensus", "network"] }
23+
alloy = { version = "1.0.25", optional = true, default-features = false, features = ["std", "signer-local", "consensus", "network"] }
2424

2525
# Tracing
2626
tracing = "0.1.40"
@@ -70,7 +70,8 @@ tokio = { version = "1.43.0", features = ["macros"] }
7070

7171
[features]
7272
default = ["alloy", "rustls"]
73-
alloy = ["dep:alloy", "dep:async-trait", "dep:aws-config", "dep:aws-sdk-kms"]
73+
alloy = ["dep:alloy"]
74+
aws = ["alloy", "alloy?/signer-aws", "dep:async-trait", "dep:aws-config", "dep:aws-sdk-kms"]
7475
perms = ["dep:oauth2", "dep:tokio", "dep:reqwest", "dep:signet-tx-cache", "dep:eyre", "dep:axum", "dep:tower"]
7576
rustls = ["dep:rustls", "rustls/aws-lc-rs"]
7677

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub mod utils {
3838
/// Alloy Provider configuration and instantiation
3939
pub mod provider;
4040

41-
#[cfg(feature = "alloy")]
41+
#[cfg(feature = "aws")]
4242
/// Signer using a local private key or AWS KMS key.
4343
pub mod signer;
4444

0 commit comments

Comments
 (0)