- bus-v1 section 12 amendment 2026-10-02: an rpc.call/rpc.reply/publish attachment may name the sender's own unsealed writer; the router seals its declared prefix on admission (copy outside the state lock), the writer becomes the sender's hold, and with recycle:true the staging allocation comes back as a new writer in the reply. A refused sealing send releases every writer it named. contractDigest changes. - SDK: ArtifactWriter::into_unsealed, Responder::reply_sealing; no rpc.responder.release after an admitted reply; delivery payloads moved, not cloned; Fields without hashing. - Router: every frame encoded once (id spliced at selection); admitted payloads forwarded as pre-encoded JSON instead of deep copies; seal copies via copy_file_range with a sized buffer; client location resolution caches the store directories. - fly-session: result attachments kept as delivered (no artifact.retain round trip per attachment); reply artifacts sealed by the reply that carries them, writers recycled into a capacity-bucketed pool. - tests: sealing.rs; artifacts.rs updated to the amendment. examples/rtt.rs measures a round trip.
22 lines
768 B
TOML
22 lines
768 B
TOML
[package]
|
|
name = "flybus"
|
|
version.workspace = true
|
|
edition = "2024"
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "A small local RPC and pub/sub bus with immutable file-backed artifacts."
|
|
|
|
[dependencies]
|
|
# `flock`, `posix_fallocate` and `O_NOFOLLOW`; everything else is std or Tokio.
|
|
libc = "0.2"
|
|
serde = { workspace = true }
|
|
# `raw_value`: the router forwards payloads it validated as pre-encoded JSON (BUS-02).
|
|
serde_json = { workspace = true, features = ["raw_value"] }
|
|
sha2 = { workspace = true }
|
|
tokio = { version = "1", features = ["rt", "net", "io-util", "sync", "time", "macros"] }
|
|
|
|
[dev-dependencies]
|
|
sha2 = { workspace = true }
|
|
tempfile = "3"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
|