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 @@ + + +
+ + + + + + +