From e830d40a12ba72c941c0a595b06e6e8b366dae44 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 20 Nov 2024 15:50:03 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Move=20Drust=20to=20root?= =?UTF-8?q?=20for=20better=20package=20clarity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CREDITS.md | 61 +++++++++---------- Cargo.toml | 2 +- {packages/drust/config => config}/common.toml | 0 .../drust/config => config}/default.toml | 0 .../config => config}/local.default.toml | 0 .../predefined-settings.toml | 0 {packages/drust => drust}/Cargo.toml | 0 {packages/drust => drust}/src/main.rs | 0 8 files changed, 29 insertions(+), 34 deletions(-) rename {packages/drust/config => config}/common.toml (100%) rename {packages/drust/config => config}/default.toml (100%) rename {packages/drust/config => config}/local.default.toml (100%) rename {pagetop/config => config}/predefined-settings.toml (100%) rename {packages/drust => drust}/Cargo.toml (100%) rename {packages/drust => drust}/src/main.rs (100%) diff --git a/CREDITS.md b/CREDITS.md index 782f40a8..238a4d8b 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,58 +1,53 @@ # 🔃 Dependencies -PageTop is developed in the [Rust programming language](https://www.rust-lang.org/) and stands on -the shoulders of true giants, using some of the most stable and renowned libraries (*crates*) from -the [Rust ecosystem](https://lib.rs), such as: - -* [Actix Web](https://actix.rs/) for web services and server management. -* [Tracing](https://github.com/tokio-rs/tracing) for the diagnostic system and structured logging. -* [Fluent templates](https://github.com/XAMPPRocky/fluent-templates) that incorporate - [Fluent](https://projectfluent.org/) for project internationalization. -* Among others, which you can review in the PageTop - [`Cargo.toml`](https://github.com/manuelcillero/pagetop/blob/main/Cargo.toml) file. +PageTop is developed using the [Rust programming language](https://www.rust-lang.org/) and stands on +the shoulders of giants, leveraging some of the most stable and renowned libraries (*crates*) from +the [Rust ecosystem](https://lib.rs), including: + * [Actix Web](https://actix.rs/) for web services and server management. + * [Tracing](https://github.com/tokio-rs/tracing) for diagnostics and structured logging. + * [Fluent templates](https://github.com/XAMPPRocky/fluent-templates), which integrate + [Fluent](https://projectfluent.org/) for internationalization. + * Additional crates, which you can explore in the `Cargo.toml` files of PageTop and its packages. # ⌨️ Code -PageTop integrates code from various renowned crates to enhance functionality: +PageTop incorporates code from several well-regarded crates to enhance its functionality: -* [**Config (v0.11.0)**](https://github.com/mehcode/config-rs/tree/0.11.0): Includes code from - [config-rs](https://crates.io/crates/config) by [Ryan Leckey](https://crates.io/users/mehcode), - chosen for its advantages in reading configuration settings and delegating assignment to safe - types, tailored to the specific needs of each package, theme, or application. + * **[Config (v0.11.0)](https://github.com/mehcode/config-rs/tree/0.11.0)**: Includes code from + [config-rs](https://crates.io/crates/config) by [Ryan Leckey](https://crates.io/users/mehcode), + chosen for its advantages in reading configuration settings and delegating assignment to safe + types, tailored to the specific needs of each package, theme, or application. -* [**Maud (v0.25.0)**](https://github.com/lambda-fairy/maud/tree/v0.25.0/maud): An adapted version - of the excellent [maud](https://crates.io/crates/maud) crate by - [Chris Wong](https://crates.io/users/lambda-fairy) is incorporated to leverage its functionalities without requiring a reference to `maud` in the `Cargo.toml` files. - -* **SmartDefault (v0.7.1)**: Embedded [SmartDefault](https://crates.io/crates/smart_default) by - [Jane Doe](https://crates.io/users/jane-doe) as `AutoDefault`to simplify the documentation of - Default implementations and also removes the need to explicitly list `smart_default` in the - `Cargo.toml` files. + * **[Maud (v0.25.0)](https://github.com/lambda-fairy/maud/tree/v0.25.0/maud)**: An adapted version + of the excellent [maud](https://crates.io/crates/maud) crate by + [Chris Wong](https://crates.io/users/lambda-fairy) is integrated, enabling its functionalities + without requiring a direct dependency in the `Cargo.toml` files. + * **SmartDefault (v0.7.1)**: The [SmartDefault](https://crates.io/crates/smart_default) crate by + [Jane Doe](https://crates.io/users/jane-doe) has been embedded as `AutoDefault`, simplifying + `Default` implementations and eliminating the need to explicitly reference `smart_default` in + the `Cargo.toml` files. # 🗚 FIGfonts PageTop uses the [figlet-rs](https://crates.io/crates/figlet-rs) package by *yuanbohan* to display a -presentation banner in the terminal with the application's name using -[FIGlet](http://www.figlet.org) characters. The fonts included in `src/app` are: +presentation banner in the terminal featuring the application's name in +[FIGlet](http://www.figlet.org) characters. The fonts included in `pagetop/src/app` are: * [slant.flf](http://www.figlet.org/fontdb_example.cgi?font=slant.flf) by *Glenn Chappell* * [small.flf](http://www.figlet.org/fontdb_example.cgi?font=small.flf) by *Glenn Chappell* (default) * [speed.flf](http://www.figlet.org/fontdb_example.cgi?font=speed.flf) by *Claude Martins* * [starwars.flf](http://www.figlet.org/fontdb_example.cgi?font=starwars.flf) by *Ryan Youck* - # 📰 Templates -* The default welcome homepage design is based on the - [Zinc](https://themewagon.com/themes/free-bootstrap-5-html5-business-website-template-zinc) - template created by [inovatik](https://inovatik.com/) and distributed by - [ThemeWagon](https://themewagon.com). - +The default welcome homepage design is inspired by a tutorial for creating a unique +[Neobrutalism](https://www.codewithfaraz.com/content/109/creating-a-unique-neobrutalism-portfolio-page-with-html-css-and-javascript) +portfolio page by [Faraz](https://www.codewithfaraz.com/). # 🎨 Icon -"The creature" smiling is a fun creation by [Webalys](https://www.iconfinder.com/webalys). It can be -found in their [Nasty Icons](https://www.iconfinder.com/iconsets/nasty) collection available on +"The Creature" smiling is a playful creation by [Webalys](https://www.iconfinder.com/webalys). It is +part of their [Nasty Icons](https://www.iconfinder.com/iconsets/nasty) collection, available on [ICONFINDER](https://www.iconfinder.com). diff --git a/Cargo.toml b/Cargo.toml index e14b2c87..35969913 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ "packages/pagetop-bootsier", # App - "packages/drust", + "drust", ] [workspace.package] diff --git a/packages/drust/config/common.toml b/config/common.toml similarity index 100% rename from packages/drust/config/common.toml rename to config/common.toml diff --git a/packages/drust/config/default.toml b/config/default.toml similarity index 100% rename from packages/drust/config/default.toml rename to config/default.toml diff --git a/packages/drust/config/local.default.toml b/config/local.default.toml similarity index 100% rename from packages/drust/config/local.default.toml rename to config/local.default.toml diff --git a/pagetop/config/predefined-settings.toml b/config/predefined-settings.toml similarity index 100% rename from pagetop/config/predefined-settings.toml rename to config/predefined-settings.toml diff --git a/packages/drust/Cargo.toml b/drust/Cargo.toml similarity index 100% rename from packages/drust/Cargo.toml rename to drust/Cargo.toml diff --git a/packages/drust/src/main.rs b/drust/src/main.rs similarity index 100% rename from packages/drust/src/main.rs rename to drust/src/main.rs