Files
leleka/control-plane/Cargo.toml
T
Pavlo Ratushnyi ff6cb3dcbf STRA-338 S21: leleka-gateway-domain (layer L2): the pure gateway domain leaves strata-control
New crate crates/gateway-domain, the first member of layer L2 in architecture.json (L2 is now a pure layer: tokio, axum,
reqwest, libc and the other adapter crates are forbidden dependencies there). It depends on serde, serde_json,
leleka-sampler-ref and leleka-tokenizer only. Moved out of control-plane/src with git mv, content unchanged apart from
paths: sampling (request sampling extensions, validation) and EngineTune (was in wire.rs), reasoning_budget (the budget
driver and its tests), codec (Family, TextCodec, TokenDecoder, QwenCodec), json_order, and the Chat Completions
translation (chat_completions: Request -> Responses request, reply fields; the axum handlers stay in chat.rs).
strata-control re-exports codec, json_order, reasoning_budget and sampling under their old paths, and wire.rs re-exports
EngineTune, so no caller and no test outside the moved modules changed. 4 new tests cover the chat translation.

Architecture gate: layer entry added; dyn-trait:leleka-gateway-domain = 5 appears because the five dyn in the moved
code (Box<dyn TokenDecoder>, Box<dyn Iterator> in the budget driver, &dyn Fn, ...) change crate; dyn-trait:strata-control
fell 21 -> 16 in the same step, so the total is unchanged (--allow-increase was needed for the new per-crate key only).
Test outcomes: 597 ok / 2 ignored before, 615 ok / 2 ignored after (18 new tests); the 13 moved tests keep their ids in the
new crate and their outcome.
2026-11-05 20:42:48 +01:00

64 lines
2.6 KiB
TOML

[package]
name = "strata-control"
version = "0.1.0"
edition = "2024"
rust-version = "1.99"
license = "MIT"
default-run = "strata-next"
[[bin]]
name = "strata-next"
path = "src/main.rs"
[dependencies]
axum = "0.8"
futures-core = "0.3"
hex = "0.4"
leleka-gguf = { path = "../crates/gguf" }
leleka-gateway-domain = { path = "../crates/gateway-domain" }
leleka-gateway-text = { path = "../crates/gateway-text" }
leleka-worker-protocol = { path = "../crates/worker-protocol" }
leleka-obs = { path = "../crates/obs" }
leleka-kar-codec = { path = "../crates/kar-codec" }
leleka-harmony = { path = "../crates/harmony" }
leleka-backend-api = { path = "../crates/backend-api" }
leleka-runtime-client = { path = "../crates/runtime-client" }
leleka-tokenizer = { path = "../crates/tokenizer" }
leleka-sampler-ref = { path = "../crates/sampler-ref" }
leleka-serving-policy = { path = "../crates/serving-policy" }
leleka-model-format = { path = "../crates/model-format" }
leleka-offline-tools = { path = "../crates/offline-tools" }
leleka-quant-core = { path = "../crates/quant-core" }
http-body = "1"
jsonschema = { version = "0.58.4", default-features = false }
libc = "0.2"
minijinja = { version = "=2.24.0", default-features = false, features = ["builtins", "macros", "multi_template", "adjacent_loop_items", "serde", "preserve_order", "loop_controls"] }
minijinja-contrib = { version = "=2.24.0", default-features = false, features = ["pycompat"] }
reqwest = { version = "0.13.5", default-features = false, features = ["rustls"] }
regex = "1.13.1"
regex-syntax = "0.8.11"
serde = { version = "1", features = ["derive"] }
# `preserve_order`: tool-call arguments, tool schemas, text.format schemas and MCP result blocks reach the model in the order the
# client (or the model) wrote them, as in the Python Original. leleka-harmony enables it too; it is declared here so this crate
# does not depend on that. Where sorted keys are wanted they are built explicitly (src/json_order.rs).
serde_json = { version = "1", features = ["float_roundtrip", "preserve_order"] }
sha2 = "0.11"
subtle = "2.6.1"
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "process", "rt-multi-thread", "signal", "sync", "time"] }
uuid = { version = "1", features = ["v4"] }
webpki-root-certs = "1.0"
[target.'cfg(windows)'.dependencies]
getrandom = "0.3"
windows-sys = { version = "0.61", features = ["Win32_Storage_FileSystem"] }
[build-dependencies]
cc = "1"
sha2 = "0.11"
[dev-dependencies]
leleka-backend-api = { path = "../crates/backend-api", features = ["scripted"] }
leleka-memory = { path = "../crates/leleka-memory" }
leleka-tokenizer = { path = "../crates/tokenizer" }
http-body-util = "0.1"