The emulator half of flysim's LegacyFrame behind the environment methods: the one-frame setup scaffold, one joypad batch per Advance, f32le audio (sample/255, unfiltered), the per-boundary memory image behind the MEM-01 seam (read between an export and an import, because emulator_read_mem syncs OAM/VRAM/timer/STAT/LY), gameboy-slots-v1 SaveSlot/RestoreSlot, capture and staged restore, and the world's half of FLYSIM01. SaveSlot, RestoreSlot and Agent.Rollback are step mutations under the ipc-v1 operation key. The parity harness (toy cartridge, direct reference in LegacyFrame order, bus driver, FLY_TRACE replay) is in legacy_env_parity.
39 lines
1.6 KiB
TOML
39 lines
1.6 KiB
TOML
[package]
|
|
name = "fly-session"
|
|
version.workspace = true
|
|
edition = "2024"
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "The lockstep session coordinator, its phase machine and a synthetic composition over flybus."
|
|
|
|
[lib]
|
|
name = "fly_session"
|
|
path = "src/lib.rs"
|
|
|
|
# One binary, one role per subcommand. `implementation.md` section 2 allows worker
|
|
# executables to be subcommands of one binary rather than separate crates, and the launcher
|
|
# starts this one with `agent` or `environment` for a participant in its own process.
|
|
[[bin]]
|
|
name = "fly-session"
|
|
path = "src/bin/fly-session.rs"
|
|
|
|
[dependencies]
|
|
# The domain contract (scalars, payloads, canonical digests, the trace format) and the bus.
|
|
# Everything else this crate needs is std or Tokio.
|
|
fly-session-types = { path = "../fly-session-types" }
|
|
flybus = { path = "../flybus" }
|
|
# ENV-01: the legacy Game Boy environment worker drives the binjgb emulator through
|
|
# flybrain-gb's safe wrapper, and flybrain-core's frozen envelope layout reads and writes the
|
|
# world's half of a FLYSIM01 checkpoint. (AGENT-01 adds flybrain-core for the agent as well.)
|
|
flybrain-core = { path = "../flybrain-core" }
|
|
flybrain-gb = { path = "../flybrain-gb" }
|
|
|
|
serde_json = { workspace = true }
|
|
# `rt-multi-thread` is not only for the tests: a worker process and a dedicated-thread
|
|
# worker each build their own runtime sized to the launcher's thread allocation.
|
|
tokio = { version = "1", features = ["rt", "rt-multi-thread", "sync", "time", "macros", "io-util"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
|