flybrain/services/flysim/crates/fly-control-edge/Cargo.toml
acamilo 29f9b7da3b flysim: the control API as flybus services with per-client grants (FLY_CONTROL_VIA=bus)
The control semantics move to flysim::control, one ControlRequest per
docs/control-api.md endpoint; flysim::api becomes the HTTP layer over a
ControlBackend. flysim::controlbus registers them as services scoped per
session and per agent (fly), with a closed grant table per client role;
flysim::bus composes the feed and control on one embedded router.
fly-control-edge serves :7401 from the services with flysim's own router.

Tests: every endpoint through the edge equals direct (status, headers,
body, and raw HTTP over TCP); grants refuse what they should, including
an input service on a shared router and per-agent/per-port player grants;
backpressure, cancel, deadlines and the edge's unbind/rebind; serve() in
control-bus mode; the session runtime's service contracts over the bus.
2026-10-01 23:33:59 +00:00

35 lines
1.1 KiB
TOML

[package]
name = "fly-control-edge"
version.workspace = true
edition = "2024"
rust-version.workspace = true
license.workspace = true
publish = false
description = "The control API (:7401) served from flysim's control services on the bus (FLY_CONTROL_VIA=bus)."
[lib]
name = "fly_control_edge"
path = "src/lib.rs"
[[bin]]
name = "fly-control-edge"
path = "src/main.rs"
[dependencies]
# The HTTP layer, the request/reply types and the bus encoding are flysim's own modules (`api`,
# `control`, `controlbus`), so the edge writes the :7401 bytes with the code flysim uses in direct
# mode and cannot disagree with the services about the encoding.
flysim = { path = "../flysim" }
flybus = { path = "../flybus" }
anyhow = "1.0"
axum = "0.8"
clap = { version = "4.5", features = ["derive"] }
serde_json = { workspace = true }
tokio = { version = "1", features = ["rt-multi-thread", "net", "sync", "time", "signal", "macros"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[dev-dependencies]
tempfile = "3"
tower = { version = "0.5", features = ["util"] }