make the module building occur in lib.rs

This commit is contained in:
Zynh Ludwig 2024-11-14 01:03:58 -08:00
parent d42ddddd29
commit bca15bf3ad
2 changed files with 10 additions and 9 deletions

9
src/lib.rs Normal file
View file

@ -0,0 +1,9 @@
pub mod cache;
pub mod router;
pub mod state;
pub mod util;
pub mod views;
pub use router::*;
pub use state::*;
pub use views::*;

View file

@ -10,18 +10,10 @@ use tower_http::{services::ServeDir, trace::TraceLayer};
use std::{io, net::SocketAddr};
mod cache;
mod router;
mod state;
mod util;
mod views;
use nyazoom::*;
use util::{headers::ForwardedFor, logging, ssr, sweeper};
use router::*;
use state::*;
use views::*;
#[tokio::main]
async fn main() -> io::Result<()> {
logging::init_tracing();