36 lines
779 B
Rust
36 lines
779 B
Rust
use pagetop::prelude::*;
|
|
|
|
create_handle!(APP_DRUST);
|
|
|
|
struct Drust;
|
|
|
|
impl ModuleTrait for Drust {
|
|
fn handle(&self) -> Handle {
|
|
APP_DRUST
|
|
}
|
|
|
|
fn dependencies(&self) -> Vec<ModuleStaticRef> {
|
|
vec![
|
|
// Themes.
|
|
&pagetop_aliner::Aliner,
|
|
&pagetop_bootsier::Bootsier,
|
|
&pagetop_bulmix::Bulmix,
|
|
// Modules.
|
|
&pagetop_homedemo::HomeDemo,
|
|
&pagetop_admin::Admin,
|
|
&pagetop_user::User,
|
|
&pagetop_node::Node,
|
|
]
|
|
}
|
|
|
|
fn drop_modules(&self) -> Vec<ModuleStaticRef> {
|
|
vec![
|
|
// &pagetop_node::Node
|
|
]
|
|
}
|
|
}
|
|
|
|
#[actix_web::main]
|
|
async fn main() -> std::io::Result<()> {
|
|
Application::prepare(&Drust).unwrap().run()?.await
|
|
}
|