Make mailbox push infallible and replace the locked tick-timing buffer with a lock-free ring. - channel: HybridChannel::push and Sender::send now return () — overflow always absorbs, never rejects — dropping the Result<(), T> surface and its callers. - stats: tick_timings moves from Mutex<VecDeque> to a lock-free crossbeam ArrayQueue (drop-oldest-on-full), removing the per-tick lock. - ripple the signature change through worker/runtime/config; drop worker_benchmarks. - expand runtime_api tests around the new channel/stats shapes. Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
42 lines
1 KiB
TOML
42 lines
1 KiB
TOML
[workspace]
|
|
members = [".", "crates/swactor-python", "crates/swactor-wasm", "crates/swactor-gossip", "crates/gossip-dashboard", "crates/runtime-dashboard"]
|
|
exclude = ["tools/depgraph"]
|
|
|
|
[package]
|
|
name = "swactor"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
autobenches = false
|
|
|
|
[profile.bench]
|
|
debug = true
|
|
strip = false
|
|
|
|
[lib]
|
|
crate-type = ["rlib"]
|
|
|
|
[features]
|
|
default = ["getrandom"]
|
|
getrandom = ["dep:getrandom"]
|
|
serde = ["dep:serde"]
|
|
tracing = ["dep:tracing"]
|
|
no_random = [] # compile without access to a source of randomness
|
|
transport = [] # transport-agnostic messaging (no mandatory deps; codec is user-provided)
|
|
|
|
[dependencies]
|
|
getrandom = { version = "0.2", optional = true }
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
tracing = { version = "0.1", optional = true }
|
|
crossbeam-queue = "0.3.12"
|
|
crossbeam-utils = "0.8.21"
|
|
|
|
[dev-dependencies]
|
|
criterion = { version = "0.5", features = ["html_reports"] }
|
|
|
|
[[bench]]
|
|
name = "runtime_benchmarks"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "mt_benchmarks"
|
|
harness = false
|