make the module building occur in lib.rs
This commit is contained in:
parent
d42ddddd29
commit
bca15bf3ad
2 changed files with 10 additions and 9 deletions
9
src/lib.rs
Normal file
9
src/lib.rs
Normal 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::*;
|
10
src/main.rs
10
src/main.rs
|
@ -10,18 +10,10 @@ use tower_http::{services::ServeDir, trace::TraceLayer};
|
||||||
|
|
||||||
use std::{io, net::SocketAddr};
|
use std::{io, net::SocketAddr};
|
||||||
|
|
||||||
mod cache;
|
use nyazoom::*;
|
||||||
mod router;
|
|
||||||
mod state;
|
|
||||||
mod util;
|
|
||||||
mod views;
|
|
||||||
|
|
||||||
use util::{headers::ForwardedFor, logging, ssr, sweeper};
|
use util::{headers::ForwardedFor, logging, ssr, sweeper};
|
||||||
|
|
||||||
use router::*;
|
|
||||||
use state::*;
|
|
||||||
use views::*;
|
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> io::Result<()> {
|
async fn main() -> io::Result<()> {
|
||||||
logging::init_tracing();
|
logging::init_tracing();
|
||||||
|
|
Loading…
Reference in a new issue