diff --git a/aws_secretsmanager_caching/Cargo.toml b/aws_secretsmanager_caching/Cargo.toml index 3396540..2ef6c84 100644 --- a/aws_secretsmanager_caching/Cargo.toml +++ b/aws_secretsmanager_caching/Cargo.toml @@ -9,11 +9,20 @@ repository = "https://github.com/aws/aws-workload-credentials-provider" readme = "README.md" [features] +default = ["rustls", "default-https-client", "rt-tokio", "credentials-process", "sso"] +credentials-process = ["aws-config/credentials-process"] +default-https-client = [ + "aws-config/default-https-client", + "aws-sdk-secretsmanager/default-https-client", +] +rt-tokio = ["aws-config/rt-tokio", "aws-sdk-secretsmanager/rt-tokio"] +rustls = ["aws-sdk-secretsmanager/rustls"] +sso = ["aws-config/sso"] fips = ["rustls/fips"] test-util = [] [dependencies] -aws-sdk-secretsmanager = "1" +aws-sdk-secretsmanager = { version = "1", default-features = false } aws-smithy-runtime-api = "1" aws-smithy-types = "1" serde_json = "1" @@ -22,14 +31,18 @@ serde = { version = "1", features = ["derive"] } thiserror = "2" tokio = { version = "1", features = ["rt-multi-thread", "sync"] } linked-hash-map = "0.5.6" -aws-config = "1" +aws-config = { version = "1", default-features = false } rustls = "0.23" log = "0.4.29" [dev-dependencies] aws-smithy-mocks = "0.2" aws-smithy-runtime = { version = "1", features = ["test-util", "wire-mock"] } -aws-sdk-secretsmanager = { version = "1", features = ["test-util"] } +aws-sdk-secretsmanager = { version = "1", default-features = false, features = [ + "test-util", + "default-https-client", + "rt-tokio", +] } tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "test-util"] } http = "0" tokio-test = "0.4.4" diff --git a/aws_secretsmanager_caching/README.md b/aws_secretsmanager_caching/README.md index 163fb35..7707494 100644 --- a/aws_secretsmanager_caching/README.md +++ b/aws_secretsmanager_caching/README.md @@ -25,6 +25,19 @@ cargo add tokio -F rt-multi-thread,net,macros cargo add aws_secretsmanager_caching ``` +By default, this crate enables the same AWS SDK features as the AWS SDK service client defaults. +Applications that want to select the SDK HTTP client explicitly can disable default features and +enable the required AWS SDK features: + +```toml +aws_secretsmanager_caching = { version = "2", default-features = false, features = [ + "default-https-client", + "rt-tokio", + "credentials-process", + "sso", +] } +``` + ```rust use aws_secretsmanager_caching::SecretsManagerCachingClient; use std::num::NonZeroUsize;