modules: extract fedserv-api leaf crate (protocol + service vocabulary)

Move NetEvent/NetAction/RegReply/Protocol and Sender/ServiceCtx into a
dependency-free fedserv-api crate that a module builds against. Core keeps
referring to them through re-export shims at crate::proto and
crate::engine::service, so no consumer changes. Groundwork for external
service and protocol modules.
This commit is contained in:
Jean Chevronnet 2026-07-13 00:36:42 +00:00
parent d99eb16dab
commit 931b8727e9
No known key found for this signature in database
6 changed files with 249 additions and 211 deletions

View file

@ -1,3 +1,6 @@
[workspace]
members = ["api"]
[package]
name = "fedserv"
version = "0.0.1"
@ -5,6 +8,7 @@ edition = "2021"
description = "Federated IRC services daemon (protocol-agnostic core, InspIRCd link first)"
[dependencies]
fedserv-api = { path = "api" }
tokio = { version = "1", features = ["net", "io-util", "rt-multi-thread", "macros", "time", "sync", "process"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"