pagetop/drust/src/main.rs

39 lines
1.3 KiB
Rust

//! <div align="center">
//!
//! <h1>Drust</h1>
//!
//! <p>Un Sistema de Gestión de Contenidos (CMS) basado en <strong>PageTop</strong> para compartir tu mundo.</p>
//!
//! [![Licencia](https://img.shields.io/badge/license-MIT%2FApache-blue.svg?label=Licencia&style=for-the-badge)](#-license)
//! [![Crates.io](https://img.shields.io/crates/v/drust.svg?style=for-the-badge&logo=ipfs)](https://crates.io/crates/drust)
//! [![Descargas](https://img.shields.io/crates/d/drust.svg?label=Descargas&style=for-the-badge&logo=transmission)](https://crates.io/crates/drust)
//!
//! </div>
//!
//! ## Sobre PageTop
//!
//! [PageTop](https://docs.rs/pagetop) es un entorno de desarrollo que reivindica la esencia de la
//! web clásica para crear soluciones web SSR (*renderizadas en el servidor*) modulares, extensibles
//! y configurables, basadas en HTML, CSS y JavaScript.
use pagetop::prelude::*;
struct Drust;
impl ExtensionTrait for Drust {
fn dependencies(&self) -> Vec<ExtensionRef> {
vec![
// Extensiones.
//&pagetop_admin::Admin,
//&pagetop_user::User,
//&pagetop_node::Node,
// Temas.
&pagetop_bootsier::Bootsier,
]
}
}
#[pagetop::main]
async fn main() -> std::io::Result<()> {
Application::prepare(&Drust).run()?.await
}