about summary refs log tree commit diff
path: root/tvix/nix-compat/src/wire/worker_protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src/wire/worker_protocol.rs')
-rw-r--r--tvix/nix-compat/src/wire/worker_protocol.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/wire/worker_protocol.rs b/tvix/nix-compat/src/wire/worker_protocol.rs
index 77d510425016..c9d055319273 100644
--- a/tvix/nix-compat/src/wire/worker_protocol.rs
+++ b/tvix/nix-compat/src/wire/worker_protocol.rs
@@ -11,6 +11,13 @@ use crate::wire::primitive;
 
 use super::bytes::read_string;
 
+// LE-encoded nixc on 64 bits. Because why not.
+pub static MAGIC_HELLO: [u8; 8] = *b"cxin\0\0\0\0";
+// LE-encoded dxio on 64 bits. What's dxio? I have no clue.
+pub static MAGIC_HELLO_RESPONSE: [u8; 8] = *b"oixd\0\0\0\0";
+// LE-encoded protocol version.
+pub static PROTOCOL_VERSION: [u8; 8] = [0x23, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
+
 pub static STDERR_LAST: u64 = 0x616c7473;
 
 /// Max length of a Nix setting name/value. In bytes.