From 42f177ac43b86cd24321ad9222121fc8a91c49e0 Mon Sep 17 00:00:00 2001 From: Dima Zhornyk <55756184+dimazhornyk@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:50:04 +0100 Subject: [PATCH] fix(da-clients): enable tls-roots feature for tonic (#3201) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What ❔ Enable `tls-roots` feature in `tonic` crate. ## Why ❔ Without this feature, the connection with the Eigen disperser can't be established ## Checklist - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`. --- Cargo.lock | 1 + core/node/da_clients/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9f94faea781c..eb2a72eb8c4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9106,6 +9106,7 @@ dependencies = [ "percent-encoding", "pin-project", "prost 0.12.6", + "rustls-native-certs 0.7.3", "rustls-pemfile 2.2.0", "rustls-pki-types", "tokio", diff --git a/core/node/da_clients/Cargo.toml b/core/node/da_clients/Cargo.toml index bde71ce3ec5a..b62376b6e476 100644 --- a/core/node/da_clients/Cargo.toml +++ b/core/node/da_clients/Cargo.toml @@ -50,7 +50,7 @@ sha2.workspace = true prost.workspace = true bech32.workspace = true ripemd.workspace = true -tonic = { workspace = true, features = ["tls", "default"] } +tonic = { workspace = true, features = ["tls", "tls-roots", "prost", "codegen"] } pbjson-types.workspace = true # Eigen dependencies