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:
parent
dbc45a0b6a
commit
677963924a
11 changed files with 43 additions and 17 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -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<()> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue