diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..560d3f5 --- /dev/null +++ b/src/lib.rs @@ -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::*; diff --git a/src/main.rs b/src/main.rs index a3ae66e..638f6f4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();