Add WorkerExtension trait (on_tick, handle_request, gc_dead) as a per-worker counterpart to the shared RuntimeExtension. This enables per-worker state like timer wheels to live outside core. - TimerWheel, TimerRequest, CloneMsg → crates/std/src/timer_wheel.rs - CtxTimers extension trait replaces Ctx::send_after_ticks/send_interval_ticks - schedule_timer → generic post_worker_request on ContextInner - Worker.timers → Worker.worker_ext (Option<Box<dyn WorkerExtension>>) - StdExtension factory creates TimerWheel per worker Core: 2440→2320 (−120). worker.rs: 696→599 (−97). Cumulative: 2636→2320 (−316, −12.0%). worker.rs: 845→599 (−29.1%). Authored by Claude, lovingly guided by Zachery Aaron Shores-Chmielewski
28 lines
580 B
TOML
28 lines
580 B
TOML
[package]
|
|
name = "swactor-fuzz"
|
|
version = "0.0.0"
|
|
publish = false
|
|
edition = "2024"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
|
|
arbitrary = { version = "1", features = ["derive"] }
|
|
swactor = { path = "..", default-features = true }
|
|
swactor-std = { path = "../crates/std" }
|
|
|
|
# Prevent this from interfering with workspaces
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "fuzz_runtime"
|
|
path = "fuzz_targets/fuzz_runtime.rs"
|
|
doc = false
|
|
|
|
[[bin]]
|
|
name = "fuzz_mt"
|
|
path = "fuzz_targets/fuzz_mt.rs"
|
|
doc = false
|