Files
leleka/crates/cpu-worker/Cargo.toml
T
Pavlo Ratushnyi 6155c871b0 worker-protocol: one crate for both ends of the gateway/worker line protocol (STRA-338 S9)
New dependency-free crate crates/worker-protocol (L0): events (Event, Done, Finish, parse_line, moved from control-plane/src/wire.rs),
command (GEN/STOP/QUIT parser, moved from cpu-worker/src/protocol.rs) and lines (READY/T/PP/REUSED/ERR/DONE writers, moved from
cpu-worker). Finish was defined twice (gateway and worker) and is now one enum with a word(). wire.rs re-exports the event types and
cpu-worker/protocol.rs re-exports the old paths, so no caller changes. The gateway's rich GEN writer (golden-tested against the Python
server) stays in wire.rs. New golden: every line the worker writes round-trips through the gateway parser.

Verified (host): cargo test leleka-worker-protocol 8/8, cpu-worker, strata-control all green (0 failed); the 6 moved tests keep their
bodies; clippy -D warnings clean on the new crate; fmt clean.
2026-11-05 13:37:05 +01:00

23 lines
620 B
TOML

[package]
name = "leleka-cpu-worker"
version = "0.1.0"
description = "Leleka CPU (AVX2 / AVX-VNNI) inference worker: serves the control plane's line protocol on stdin/stdout"
edition.workspace = true
license.workspace = true
rust-version.workspace = true
[[bin]]
name = "leleka-cpu-worker"
path = "src/main.rs"
[dependencies]
leleka-cpu-kernels = { path = "../cpu-kernels" }
leleka-cpu-sys = { path = "../cpu-sys" }
leleka-gguf = { path = "../gguf" }
leleka-gptoss = { path = "../gptoss" }
leleka-tokenizer = { path = "../tokenizer" }
leleka-worker-protocol = { path = "../worker-protocol" }
[lints]
workspace = true