Skip to content

refactor: gate debug tracer modules behind #[cfg(test)]#2486

Merged
oferchen merged 1 commit intomasterfrom
refactor/gate-debug-modules
Feb 23, 2026
Merged

refactor: gate debug tracer modules behind #[cfg(test)]#2486
oferchen merged 1 commit intomasterfrom
refactor/gate-debug-modules

Conversation

@oferchen
Copy link
Owner

Summary

  • Gate 5 debug tracer modules behind #[cfg(test)] — they have zero production callers
  • Modules: debug_del, debug_recv, debug_send, debug_deltasum, debug_flist (3,678 lines total)
  • Eliminates ~100KB of dead code from release binaries while keeping all 112 unit tests functional

Test plan

  • cargo check -p engine --all-targets --all-features passes
  • cargo clippy -p engine --all-targets --all-features --no-deps clean
  • All 112 debug module tests pass

The five debug_*.rs modules (debug_del, debug_recv, debug_send,
debug_deltasum, debug_flist) totalling 3,678 lines have zero
production callers — they are only exercised by their own internal
unit tests. Gating them behind #[cfg(test)] eliminates ~100KB of
dead code from release binaries while keeping the tests functional.
@oferchen oferchen merged commit 413a81f into master Feb 23, 2026
31 checks passed
@oferchen oferchen deleted the refactor/gate-debug-modules branch February 23, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant