diff options
author | Florian Klink <flokli@flokli.de> | 2024-04-04T16·03+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-04-06T14·12+0000 |
commit | f3d8c633f2b4c44a6911d751a2efd93ef926a8bf (patch) | |
tree | a00891ab1c9699baeb9848065634bcd00dcb7f5d /tvix/Cargo.nix | |
parent | 39276dc5b41fa5e756ebb8ae30b4d2ac91995be7 (diff) |
feat(tvix/nix-compat/wire): introduce BytesWriter r/7857
This deals with writing byte packets of larger sizes to an underlying AsyncWrite. Its constructor receives the expected size. It also deals with writing padding if flush/shutdown is called after writing all the payload. Change-Id: I8acbf992467f3862ffb8c7d669e8c0c8eced14c1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11355 Reviewed-by: picnoir picnoir <picnoir@alternativebit.fr> Autosubmit: flokli <flokli@flokli.de> Reviewed-by: Brian Olsen <me@griff.name> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/Cargo.nix')
-rw-r--r-- | tvix/Cargo.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index e6920342d735..0dc2f7c1d2a8 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -5770,6 +5770,11 @@ rec { packageId = "num-traits"; } { + name = "pin-project-lite"; + packageId = "pin-project-lite"; + optional = true; + } + { name = "serde"; packageId = "serde"; features = [ "derive" ]; @@ -5839,11 +5844,12 @@ rec { } ]; features = { - "async" = [ "futures-util" "tokio" ]; + "async" = [ "futures-util" "tokio" "pin-project-lite" ]; "futures-util" = [ "dep:futures-util" ]; + "pin-project-lite" = [ "dep:pin-project-lite" ]; "tokio" = [ "dep:tokio" ]; }; - resolvedDefaultFeatures = [ "async" "futures-util" "tokio" ]; + resolvedDefaultFeatures = [ "async" "futures-util" "pin-project-lite" "tokio" ]; }; "nom" = rec { crateName = "nom"; |