Reorganize protocol and pseudoclients into a modules/ tree

The core stays in src/; protocol and pseudoclients move to modules/,
pulled in with #[path].
This commit is contained in:
Jean Chevronnet 2026-07-12 10:31:09 +00:00
parent dbc45a0b6a
commit 677963924a
No known key found for this signature in database
11 changed files with 43 additions and 17 deletions

View file

@ -1,19 +1,24 @@
// Core lives in src/; pluggable modules live in ../modules/.
mod config;
mod engine;
mod gossip;
mod link;
#[path = "../modules/protocol/mod.rs"]
mod proto;
mod services;
#[path = "../modules/nickserv/nickserv.rs"]
mod nickserv;
#[path = "../modules/chanserv/chanserv.rs"]
mod chanserv;
use anyhow::Result;
use std::sync::Arc;
use std::time::{SystemTime, UNIX_EPOCH};
use tokio::sync::Mutex;
use chanserv::ChanServ;
use engine::Engine;
use nickserv::NickServ;
use proto::inspircd::InspIrcd;
use services::chanserv::ChanServ;
use services::nickserv::NickServ;
#[tokio::main]
async fn main() -> Result<()> {