fix(deps): gate rcgen aws_lc_rs feature behind rustls-tls (#10116)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Douwe Osinga <douwe@block.xyz>
This commit is contained in:
Rodolfo Olivieri 2026-07-06 11:32:19 -04:00 committed by GitHub
parent 65eed51555
commit 1857112587
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

2
Cargo.lock generated
View file

@ -8918,6 +8918,7 @@ checksum = "57f6d249aad744e274e682777a50283a225a32705394ee6d5fcc01efa25e4055"
dependencies = [
"aws-lc-rs",
"pem",
"ring",
"rustls-pki-types",
"time",
"x509-parser",
@ -13953,6 +13954,7 @@ dependencies = [
"lazy_static",
"nom 7.1.3",
"oid-registry",
"ring",
"rusticata-macros",
"thiserror 2.0.18",
"time",

View file

@ -47,6 +47,7 @@ rustls-tls = [
"dep:axum-server",
"dep:aws-lc-rs",
"axum-server/tls-rustls",
"rcgen/aws_lc_rs",
"reqwest/rustls",
"rmcp/reqwest",
"smithy-transport-reqwest?/rustls",
@ -62,6 +63,9 @@ native-tls = [
"dep:axum-server",
"dep:openssl",
"axum-server/tls-openssl",
# rcgen requires a crypto backend; ring is used here because aws-lc-rs is
# reserved for the rustls-tls path and openssl does not provide this interface.
"rcgen/ring",
"reqwest/native-tls",
"rmcp/reqwest-native-tls",
"smithy-transport-reqwest?/native-tls",
@ -208,7 +212,7 @@ process-wrap = { version = "9", default-features = false, features = ["std"] }
nostr = { version = "0.44", default-features = false, features = ["nip44", "std"], optional = true }
nostr-sdk = { version = "0.44", default-features = false, features = ["nip44"], optional = true }
rustls = { workspace = true, optional = true }
rcgen = { version = "0.14", default-features = false, features = ["aws_lc_rs", "crypto", "pem"], optional = true }
rcgen = { version = "0.14", default-features = false, features = ["crypto", "pem"], optional = true }
axum-server = { version = "0.8", default-features = false, optional = true }
aws-lc-rs = { version = "1.17", default-features = false, optional = true }
openssl = { version = "0.10.66", default-features = false, optional = true }