♻️ Move Drust to root for better package clarity
This commit is contained in:
parent
73ba80eff7
commit
e830d40a12
8 changed files with 29 additions and 34 deletions
36
drust/Cargo.toml
Normal file
36
drust/Cargo.toml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
[package]
|
||||
name = "drust"
|
||||
version = "0.0.3"
|
||||
edition = "2021"
|
||||
|
||||
description = """\
|
||||
A modern web Content Management System to share your world.\
|
||||
"""
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
pagetop.workspace = true
|
||||
|
||||
# Packages.
|
||||
pagetop-bootsier.workspace = true
|
||||
#pagetop-admin = { version = "0.0", path = "../pagetop-admin" }
|
||||
#pagetop-user = { version = "0.0", path = "../pagetop-user" }
|
||||
#pagetop-node = { version = "0.0", path = "../pagetop-node" }
|
||||
|
||||
#[features]
|
||||
#default = [ "mysql" ]
|
||||
#mysql = [
|
||||
# "pagetop-user/mysql",
|
||||
# "pagetop-node/mysql",
|
||||
#]
|
||||
#postgres = [
|
||||
# "pagetop-user/postgres",
|
||||
# "pagetop-node/postgres",
|
||||
#]
|
||||
#sqlite = [
|
||||
# "pagetop-user/sqlite",
|
||||
# "pagetop-node/sqlite",
|
||||
#]
|
||||
20
drust/src/main.rs
Normal file
20
drust/src/main.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
struct Drust;
|
||||
|
||||
impl PackageTrait for Drust {
|
||||
fn dependencies(&self) -> Vec<PackageRef> {
|
||||
vec![
|
||||
// Packages.
|
||||
&pagetop_bootsier::Bootsier,
|
||||
//&pagetop_admin::Admin,
|
||||
//&pagetop_user::User,
|
||||
//&pagetop_node::Node,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
#[pagetop::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
Application::prepare(&Drust).run()?.await
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue