feat(p2p): add persistence and graceful shutdown

- persistence.rs: Append-only log storage for routing table,
  KeyPackage cache, and messages with compaction and GC
- shutdown.rs: Coordinated shutdown with phase transitions,
  task tracking, connection draining, and hook system

Enables stateful operation and clean restarts.
This commit is contained in:
2026-04-01 09:19:13 +02:00
parent 024b6c91d1
commit a258f98a40
3 changed files with 1165 additions and 0 deletions

View File

@@ -27,7 +27,9 @@ pub mod keypackage_cache;
pub mod mesh_protocol;
pub mod metrics;
pub mod mls_lite;
pub mod persistence;
pub mod rate_limit;
pub mod shutdown;
pub mod identity;
pub mod link;
pub mod mesh_router;