From 4fab74efe5d2911f6f9ebe189bdb2450b998891b Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 23 Sep 2025 10:18:37 -0500 Subject: [PATCH] found this old project, not sure why it contains rust stuff but I just want to html --- Cargo.lock | 1 + Cargo.toml | 1 + src/main.rs | 3 +- static/chat.css | 7 + static/chat.html | 548 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 559 insertions(+), 1 deletion(-) create mode 100644 static/chat.css create mode 100644 static/chat.html diff --git a/Cargo.lock b/Cargo.lock index bd48fbb..1060015 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -140,6 +140,7 @@ version = "0.1.0" dependencies = [ "axum", "serde", + "tokio", "uuid", ] diff --git a/Cargo.toml b/Cargo.toml index 8d5158b..e2b050b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,4 +6,5 @@ edition = "2024" [dependencies] axum = { version = "0.8.3", features = ["http2", "ws"] } serde = "1.0.219" +tokio = { version = "1.44.2", features = ["rt-multi-thread"] } uuid = "1.16.0" diff --git a/src/main.rs b/src/main.rs index e7a11a9..7e3d561 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ -fn main() { +#[tokio::main] +async fn main() { println!("Hello, world!"); } diff --git a/static/chat.css b/static/chat.css new file mode 100644 index 0000000..920aae1 --- /dev/null +++ b/static/chat.css @@ -0,0 +1,7 @@ +.user-mod { + background-color: #70C070; +} + +.user-vip { + background-color: #ffc6f8; +} \ No newline at end of file diff --git a/static/chat.html b/static/chat.html new file mode 100644 index 0000000..426a2a7 --- /dev/null +++ b/static/chat.html @@ -0,0 +1,548 @@ + + + + + + + + + +
+ +
+ + + + + + \ No newline at end of file