From 43570bae11ff5c5fac5c644785a7c372367826ba Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 20 Feb 2024 12:12:37 +0700 Subject: refactor(tvix/store/proto): use bstr::ByteSlice String::from_utf8_lossy simply discards invalid bytes, while bstr replaces them with their replacement character. Change-Id: Ib78ff36ca5faacc1ad60bc4ddde7b62773848c07 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10981 Tested-by: BuildkiteCI Reviewed-by: Peter Kolloch Reviewed-by: flokli --- tvix/Cargo.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tvix/Cargo.nix') diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index a39c8ef38d54..f12d95506191 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -10788,6 +10788,10 @@ rec { packageId = "blake3"; features = [ "rayon" "std" ]; } + { + name = "bstr"; + packageId = "bstr"; + } { name = "bytes"; packageId = "bytes"; -- cgit 1.4.1