From 432222f098bfceb033e63e9a63687e35574457f9 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 19 Jul 2023 18:52:50 +0300 Subject: feat(tvix/store/proto): use Bytes instead of Vec Makes use of https://github.com/tokio-rs/prost/pull/341, which makes our bytes field cheaper to clone. It's a bit annoying to configure due to https://github.com/hyperium/tonic/issues/908, but the workaround does get the job done. Change-Id: I25714600b041bb5432d3adf5859b151e72b12778 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8975 Reviewed-by: raitobezarius Tested-by: BuildkiteCI Reviewed-by: tazjin Autosubmit: flokli --- tvix/cli/Cargo.toml | 1 + tvix/cli/src/nix_compat.rs | 2 +- tvix/cli/src/tvix_io.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tvix/cli') diff --git a/tvix/cli/Cargo.toml b/tvix/cli/Cargo.toml index de73fd6b3e..4b7081906f 100644 --- a/tvix/cli/Cargo.toml +++ b/tvix/cli/Cargo.toml @@ -18,6 +18,7 @@ smol_str = "0.2.0" ssri = "7.0.0" data-encoding = "2.3.3" thiserror = "1.0.38" +bytes = "1.4.0" [dependencies.wu-manber] git = "https://github.com/tvlfyi/wu-manber.git" diff --git a/tvix/cli/src/nix_compat.rs b/tvix/cli/src/nix_compat.rs index dbb67a9a1e..f824487276 100644 --- a/tvix/cli/src/nix_compat.rs +++ b/tvix/cli/src/nix_compat.rs @@ -77,7 +77,7 @@ impl EvalIO for NixCompatIO { self.underlying.read_to_string(path) } - fn read_dir(&self, path: &Path) -> Result, FileType)>, io::Error> { + fn read_dir(&self, path: &Path) -> Result, io::Error> { self.underlying.read_dir(path) } } diff --git a/tvix/cli/src/tvix_io.rs b/tvix/cli/src/tvix_io.rs index 387a77b919..b37dfc6a66 100644 --- a/tvix/cli/src/tvix_io.rs +++ b/tvix/cli/src/tvix_io.rs @@ -72,7 +72,7 @@ impl EvalIO for TvixIO { self.actual.read_to_string(path) } - fn read_dir(&self, path: &Path) -> Result, FileType)>, io::Error> { + fn read_dir(&self, path: &Path) -> Result, io::Error> { self.actual.read_dir(path) } } -- cgit 1.4.1