From e3d72cc4cb6714f683e97e8405f296977335efa6 Mon Sep 17 00:00:00 2001 From: Connor Brewster Date: Sat, 14 Oct 2023 11:58:23 -0500 Subject: refactor(tvix/store): Upgrade tokio-listener to get tonic support Tonic support was added to tokio-listener upstream which removes the need for use to have tonic compatibility wrapper types around it. See: https://github.com/vi/tokio-listener/pull/2 Fixes b/311 Change-Id: I04a2dbb3bc3c8bfe9339583c0b46070c7ec97811 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9721 Tested-by: BuildkiteCI Reviewed-by: flokli --- tvix/Cargo.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'tvix/Cargo.nix') diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index 11d6e0ac7e9c..8848a3fe159a 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -7481,9 +7481,9 @@ rec { }; "tokio-listener" = rec { crateName = "tokio-listener"; - version = "0.2.1"; + version = "0.2.2"; edition = "2021"; - sha256 = "1yx7vsiwqg0lzdwyavwwnnpkvnmlgsjivvwsqbz7k9jj00lmx1q5"; + sha256 = "0iaxcxbjhl2dk6b0w2bwm7qiryp119zgdhgqma169kmncn2xg7k6"; dependencies = [ { name = "document-features"; @@ -7522,6 +7522,11 @@ rec { packageId = "tokio"; features = [ "net" "io-std" "time" "sync" ]; } + { + name = "tonic"; + packageId = "tonic"; + optional = true; + } { name = "tracing"; packageId = "tracing"; @@ -7538,6 +7543,10 @@ rec { packageId = "tokio"; features = [ "macros" "rt" "io-util" ]; } + { + name = "tonic"; + packageId = "tonic"; + } ]; features = { "clap" = [ "dep:clap" ]; @@ -7549,10 +7558,12 @@ rec { "serde_with" = [ "dep:serde_with" ]; "socket2" = [ "dep:socket2" ]; "socket_options" = [ "socket2" ]; + "tonic" = [ "dep:tonic" ]; + "tonic010" = [ "tonic" ]; "unix_path_tools" = [ "nix" ]; "user_facing_default" = [ "inetd" "unix" "unix_path_tools" "sd_listen" "socket_options" ]; }; - resolvedDefaultFeatures = [ "default" "hyper" "hyper014" "inetd" "nix" "sd_listen" "socket2" "socket_options" "unix" "unix_path_tools" "user_facing_default" ]; + resolvedDefaultFeatures = [ "default" "hyper" "hyper014" "inetd" "nix" "sd_listen" "socket2" "socket_options" "tonic" "tonic010" "unix" "unix_path_tools" "user_facing_default" ]; }; "tokio-macros" = rec { crateName = "tokio-macros"; @@ -9003,6 +9014,7 @@ rec { { name = "tokio-listener"; packageId = "tokio-listener"; + features = [ "tonic010" ]; } { name = "tokio-stream"; -- cgit 1.4.1