From 1a06430c1ede00b262f6d7bbfbe3107039b2575c Mon Sep 17 00:00:00 2001 From: James Date: Wed, 3 Sep 2025 16:59:04 -0400 Subject: [PATCH] fix: add aws as a non-default feature to shrink the dep tree --- Cargo.toml | 7 ++++--- src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5c70daa..6c16297 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "init4-bin-base" description = "Internal utilities for binaries produced by the init4 team" keywords = ["init4", "bin", "base"] -version = "0.11.0" +version = "0.12.0" edition = "2021" rust-version = "1.81" authors = ["init4", "James Prestwich"] @@ -20,7 +20,7 @@ signet-constants = { version = "0.10.0" } signet-tx-cache = { version = "0.10.0", optional = true } # alloy -alloy = { version = "1.0.25", optional = true, default-features = false, features = ["std", "signer-aws", "signer-local", "consensus", "network"] } +alloy = { version = "1.0.25", optional = true, default-features = false, features = ["std", "signer-local", "consensus", "network"] } # Tracing tracing = "0.1.40" @@ -70,7 +70,8 @@ tokio = { version = "1.43.0", features = ["macros"] } [features] default = ["alloy", "rustls"] -alloy = ["dep:alloy", "dep:async-trait", "dep:aws-config", "dep:aws-sdk-kms"] +alloy = ["dep:alloy"] +aws = ["alloy", "alloy?/signer-aws", "dep:async-trait", "dep:aws-config", "dep:aws-sdk-kms"] perms = ["dep:oauth2", "dep:tokio", "dep:reqwest", "dep:signet-tx-cache", "dep:eyre", "dep:axum", "dep:tower"] rustls = ["dep:rustls", "rustls/aws-lc-rs"] diff --git a/src/lib.rs b/src/lib.rs index 03dc861..57d7052 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,7 @@ pub mod utils { /// Alloy Provider configuration and instantiation pub mod provider; - #[cfg(feature = "alloy")] + #[cfg(feature = "aws")] /// Signer using a local private key or AWS KMS key. pub mod signer;