From 36982f9d952b0e0991dbabda61d0ce46aca71384 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 5 Jun 2024 00:54:34 +0200 Subject: [PATCH] chore: init project --- .editorconfig | 17 +++++++++++++++++ .gitignore | 1 + .rustfmt.toml | 1 + Cargo.toml | 30 ++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .rustfmt.toml create mode 100644 Cargo.toml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..af278fc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# Default to Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = tab +indent_size = 4 + +[*.rs] +indent_size = 2 + +[*.js] +indent_size = 2 + +[*.{yml,yaml}] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..218e203 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ +hard_tabs = true diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..30ef6c8 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,30 @@ +[package] +name = "owncast-chat-tui" +version = "0.1.0" +edition = "2021" +authors = [ "alemi " ] +description = "a simple owncast chat in your terminal, using websockets" +license = "MIT" +keywords = ["cli", "owncast", "chat", "tui"] +repository = "https://moonlit.technology/alemi/owncast-chat-tui" +readme = "README.md" + +[dependencies] +clap = { version = "4.5", features = ["derive"] } +tokio = { version = "1.37", features = ["rt", "macros", "io-util"] } +tokio-tungstenite = "0.21" +futures-util = "0.3.30" +serde = { version = "1.0.203", features = ["derive"] } +serde_json = "1.0.117" +chrono = { version = "0.4.38", features = ["serde"] } +reqwest = { version = "0.12.4", features = ["json"] } +dissolve = "0.2.2" +ratatui = { version = "0.26", features = ["all-widgets", "crossterm"] } +crossterm = { version = "0.27", features = ["event-stream"] } +async-trait = "0.1.80" +futures = "0.3.30" + +[features] +default = ["native-tls"] +native-tls = ["tokio-tungstenite/native-tls"] +rustls-tls = ["tokio-tungstenite/rustls-tls-native-roots"]