For now? I'm experimenting on an old concept.
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

style: Update module headers to rust official

+48 -43
+10 -9
server/src/client_communication.rs
··· 1 - //// Lumina > Server > Client Communication 2 - //// This module handles communication between the Lumina server and its clients 3 - //// over WebSockets. It defines the message formats, handles incoming messages, 4 - //// and sends appropriate responses back to the clients. 5 - //// 6 - //// For future clients that might not be web-based, this module is designed to be 7 - //// extensible and adaptable to different client types. 8 - //// It might for example be expanded to also feature a REST API for clients that 9 - //// cannot use WebSockets. 1 + //! Lumina > Server > Client Communication 2 + //! 3 + //! This module handles communication between the Lumina server and its clients 4 + //! over WebSockets. It defines the message formats, handles incoming messages, 5 + //! and sends appropriate responses back to the clients. 6 + //! 7 + //! For future clients that might not be web-based, this module is designed to be 8 + //! extensible and adaptable to different client types. 9 + //! It might for example be expanded to also feature a REST API for clients that 10 + //! cannot use WebSockets. 10 11 11 12 /* 12 13 * Lumina/Peonies
+4 -6
server/src/database.rs
··· 1 - //// Lumina > Server > Database 2 - //// Database management and connection pooling module. 1 + //! Lumina > Server > Database 2 + //! 3 + //! Database management and connection pooling module. 3 4 4 5 /* 5 6 * Lumina/Peonies ··· 156 157 .query(&mut *redis_conn) 157 158 .map_err(LuminaError::Redis)?; 158 159 } 159 - info_elog!( 160 - ev_log, 161 - "Bloom filters populated from PostgreSQL.", 162 - ); 160 + info_elog!(ev_log, "Bloom filters populated from PostgreSQL.",); 163 161 }; 164 162 let conn_clone = conn_two.0; 165 163 let pg_config_clone = pg_config.clone();
+3 -2
server/src/errors.rs
··· 1 - //// Lumina > Server > Errors 2 - //// This module defines custom error types used throughout the server. 1 + //! Lumina > Server > Errors 2 + //! 3 + //! This module defines custom error types used throughout the server. 3 4 4 5 /* 5 6 * Lumina/Peonies
+7 -6
server/src/helpers/events.rs
··· 1 - //// Lumina > Server > Helpers > Events 2 - //// This module provides an event logging utility that logs messages to stdout 3 - //// with colored prefixes and optionally logs them to a database. 4 - //// 5 - //// This helps increase consistency in logging throughout the server codebase, centralises it, and 6 - //// improves readability and distinctability with its colored output. 1 + //! Lumina > Server > Helpers > Events 2 + //! 3 + //! This module provides an event logging utility that logs messages to stdout 4 + //! with colored prefixes and optionally logs them to a database. 5 + //! 6 + //! This helps increase consistency in logging throughout the server codebase, centralises it, and 7 + //! improves readability and distinctability with its colored output. 7 8 /* 8 9 * Lumina/Peonies 9 10 * Copyright (C) 2018-2026 MLC 'Strawmelonjuice' Bloeiman and contributors.
+4 -3
server/src/helpers/mod.rs
··· 1 - //// Lumina > Server > Helpers 2 - //// Shared helper functions and utilities for the server. 1 + //! Lumina > Server > Helpers 2 + //! 3 + //! Shared helper functions and utilities for the server. 3 4 4 5 /* 5 6 * Lumina/Peonies ··· 19 20 * along with this program. If not, see <https://www.gnu.org/licenses/>. 20 21 */ 21 22 /// Shared helper functions and utilities for the server. 22 - pub mod events; 23 + pub mod events;
+6 -7
server/src/main.rs
··· 1 - //// Lumina > Server 2 - //// 3 - //// The main entrypoint for the Lumina server-side, reaching out to other modules to compose 4 - //// the full server functionality including database connections, webserver, websockets, CLI 5 - //// commands, and more. 1 + //! Lumina > Server 2 + //! 3 + //! The main entrypoint for the Lumina server-side, reaching out to other modules to compose 4 + //! the full server functionality including database connections, webserver, websockets, CLI 5 + //! commands, and more. 6 6 7 7 /* 8 8 * Lumina/Peonies ··· 35 35 use helpers::events::EventLogger; 36 36 use rocket::config::LogLevel; 37 37 use std::io::ErrorKind; 38 - use std::{net::IpAddr, path, process, sync::Arc}; 38 + use std::{net::IpAddr, process, sync::Arc}; 39 39 use tokio::sync::Mutex; 40 40 use uuid::Uuid; 41 41 mod user; ··· 49 49 port: u16, 50 50 host: IpAddr, 51 51 } 52 - 53 52 use crate::errors::LuminaError; 54 53 use cynthia_con::{CynthiaColors, CynthiaStyles}; 55 54 use dotenv::dotenv;
+3 -2
server/src/rate_limiter.rs
··· 1 - //// Lumina > Server > Rate Limiter 2 - //// This module implements a simple rate limiter using a token bucket algorithm. 1 + //! Lumina > Server > Rate Limiter 2 + //! 3 + //! This module implements a simple rate limiter using a token bucket algorithm. 3 4 4 5 /* 5 6 * Lumina/Peonies
+3 -2
server/src/staticroutes.rs
··· 1 - //// Lumina > Server > Static Routes 2 - //// This module defines static routes for serving static files like CSS, JS, and images. 1 + //! Lumina > Server > Static Routes 2 + //! 3 + //! This module defines static routes for serving static files like CSS, JS, and images. 3 4 4 5 /* 5 6 * Lumina/Peonies
+3 -2
server/src/timeline.rs
··· 1 - //// Lumina > Server > Posts > Timeline 2 - //// Timeline management module for posts. 1 + //! Lumina > Server > Posts > Timeline 2 + //! 3 + //! Timeline management module for posts. 3 4 4 5 /* 5 6 * Lumina/Peonies
+5 -4
server/src/user.rs
··· 1 - //// Lumina > Server > Users 2 - //// User management module, including user struct and database interactions. 1 + //! Lumina > Server > Users 2 + //! 3 + //! User management module, including user struct and database interactions. 3 4 /* 4 5 * Lumina/Peonies 5 6 * Copyright (C) 2018-2026 MLC 'Strawmelonjuice' Bloeiman and contributors. ··· 21 22 use crate::{ 22 23 LuminaError, 23 24 database::DbConn, 24 - helpers::{self, events::EventLogger}, info_elog, 25 + helpers::{self, events::EventLogger}, 26 + info_elog, 25 27 }; 26 28 use cynthia_con::CynthiaColors; 27 29 use std::str::FromStr; ··· 151 153 db: &DbConn, 152 154 ev_log: EventLogger, 153 155 ) -> Result<(SessionReference, User), LuminaError> { 154 - 155 156 let user = self; 156 157 let user_id = user.id; 157 158 match db {