diff options
author | Vova Kryachko <v.kryachko@gmail.com> | 2024-11-19T17·28-0500 |
---|---|---|
committer | Vladimir Kryachko <v.kryachko@gmail.com> | 2024-11-20T17·36+0000 |
commit | db13b6c0920b1d5f141ffbcab485f42b2695d1ae (patch) | |
tree | da722964161cf1dc6ba5db63c1a1b5bfb9ea6f77 /tvix/nix-compat/src/nix_daemon/worker_protocol.rs | |
parent | e5fbde94aa4c706ecc93108ac0c646620eb2e426 (diff) |
chore(tvix/nix-daemon): Implement STDERR_READ protocol r/8944
When sending nars over the wire to the nix-daemon, nix protocol versions 1.21 to 1.23 use this framing protocol. This change implements an AsyncRead for this protocol, to be used in AddToStoreNar and any other operations when necessary. Change-Id: I571f1adbb2343c14c98503d1a2c12eea4c783ec9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12813 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat/src/nix_daemon/worker_protocol.rs')
-rw-r--r-- | tvix/nix-compat/src/nix_daemon/worker_protocol.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/nix_daemon/worker_protocol.rs b/tvix/nix-compat/src/nix_daemon/worker_protocol.rs index 1ef9b9ab02d7..45d4e5f084d1 100644 --- a/tvix/nix-compat/src/nix_daemon/worker_protocol.rs +++ b/tvix/nix-compat/src/nix_daemon/worker_protocol.rs @@ -16,6 +16,7 @@ pub(crate) static WORKER_MAGIC_1: u64 = 0x6e697863; // "nixc" pub(crate) static WORKER_MAGIC_2: u64 = 0x6478696f; // "dxio" pub static STDERR_LAST: u64 = 0x616c7473; // "alts" pub(crate) static STDERR_ERROR: u64 = 0x63787470; // "cxtp" +pub(crate) static STDERR_READ: u64 = 0x64617461; // "data" /// | Nix version | Protocol | /// |-----------------|----------| |