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 <flokli@flokli.de>
This commit is contained in:
Connor Brewster 2023-10-14 11:58:23 -05:00
parent 8e811fe625
commit e3d72cc4cb
6 changed files with 29 additions and 141 deletions

View file

@ -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";