From 2a32408f5197089435e9c2ddcd921b80243e46e7 Mon Sep 17 00:00:00 2001 From: Jake Oliver Date: Thu, 14 May 2026 18:08:41 +0100 Subject: [PATCH] feat: add aws-lc-rs TLS backend feature Make the TLS backend configurable instead of hard-coding tonic's `tls-ring` feature. The default keeps the previous behaviour (`tls-ring`); consumers that want aws-lc-rs can opt in via `--features tls-aws-lc --no-default-features`. Co-Authored-By: Claude Opus 4.7 (1M context) --- ginepro/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ginepro/Cargo.toml b/ginepro/Cargo.toml index 5422847..85922b1 100644 --- a/ginepro/Cargo.toml +++ b/ginepro/Cargo.toml @@ -9,13 +9,18 @@ keywords = ["gRPC", "tonic", "channel", "load", "balancer"] categories = ["asynchronous", "web-programming"] readme = "../README.md" +[features] +default = ["tls-ring"] +tls-ring = ["tonic/tls-ring"] +tls-aws-lc = ["tonic/tls-aws-lc"] + [dependencies] anyhow = "1" async-trait = "0.1" http = "1" thiserror = "2" tokio = { version = "1", features = ["full"] } -tonic = { version = "0.13", features = ["tls-ring"] } +tonic = { version = "0.13", default-features = false, features = ["router", "transport", "codegen", "prost"] } tower = { version = "0.5", default-features = false, features = ["discover"] } tracing = "0.1" hickory-resolver = { version = "0.26", features = ["tokio"] }