Reorganize main crate for testability.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-09-27 12:05:38 +00:00
parent ba12773a5a
commit 1313eb0b64
11 changed files with 248 additions and 214 deletions

View File

@@ -1,6 +1,7 @@
#![type_length_limit = "12288"]
pub mod alloc;
pub mod args;
pub mod config;
pub mod debug;
pub mod error;
@@ -9,6 +10,7 @@ pub mod log;
pub mod matrix;
pub mod metrics;
pub mod mods;
pub mod runtime;
pub mod server;
pub mod utils;
@@ -20,12 +22,14 @@ pub use ::smallstr;
pub use ::smallvec;
pub use ::toml;
pub use ::tracing;
pub use args::Args;
pub use config::Config;
pub use error::Error;
pub use info::{rustc_flags_capture, version, version::version};
pub use matrix::{
Event, EventTypeExt, Pdu, PduCount, PduEvent, PduId, RoomVersion, pdu, state_res,
};
pub use runtime::Runtime;
pub use server::Server;
pub use utils::{ctor, dtor, implement, result, result::Result};