diff --git a/Cargo.lock b/Cargo.lock index 42d6aaf..738ca0c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -220,15 +220,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" -[[package]] -name = "colored" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fde0e0ec90c9dfb3b4b1a0891a7dcd0e2bffde2f7efed5fe7c9bb00e5bfb915e" -dependencies = [ - "windows-sys 0.59.0", -] - [[package]] name = "console" version = "0.15.10" @@ -344,15 +335,6 @@ dependencies = [ "syn", ] -[[package]] -name = "emojis" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99e1f1df1f181f2539bac8bf027d31ca5ffbf9e559e3f2d09413b9107b5c02f4" -dependencies = [ - "phf", -] - [[package]] name = "encode_unicode" version = "1.0.0" @@ -1047,8 +1029,6 @@ version = "0.0.1" dependencies = [ "chrono", "clap", - "colored", - "emojis", "futures", "indicatif", "reqwest", @@ -1066,24 +1046,6 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" -[[package]] -name = "phf" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" -dependencies = [ - "phf_shared", -] - -[[package]] -name = "phf_shared" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" -dependencies = [ - "siphasher", -] - [[package]] name = "pin-project-lite" version = "0.2.16" @@ -1362,12 +1324,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" -[[package]] -name = "siphasher" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" - [[package]] name = "slab" version = "0.4.9" diff --git a/Cargo.toml b/Cargo.toml index e3d063c..437d5c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,9 +16,7 @@ toml = "0.8.19" xdg = "2.5.2" futures = "0.3.31" indicatif = "0.17.9" -colored = "3.0.0" terminal-link = "0.1.0" -emojis = "0.6.4" [profile.dev] opt-level = 0 diff --git a/README.md b/README.md index 3acf13d..24bebb8 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@
Packard is a simple RSS aggregator meant to allow you to take a quick glance at what's occurring in topics you care about.
-This is my first attempt at making something with Rust so that I may learn alongside creating something that I personally find useful. - ![Demo](https://github.com/user-attachments/assets/651365e9-6549-4924-8d85-967397bfcbb3) +This is my first attempt at making something with Rust so that I may learn alongside creating something that I personally find useful. + ## Configuration There are now several options available to be configured, with more on their way. As of now Packard's config file should be placed within `$HOME/.config/packard` and formatted in TOML. diff --git a/src/main.rs b/src/main.rs index 4140ecf..cb9eefb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,5 @@ use chrono::{DateTime, Utc}; use clap::Parser; -use colored::Colorize; -use emojis; use futures::future::join_all; use indicatif::{ProgressBar, ProgressStyle}; use reqwest::get; @@ -164,11 +162,10 @@ async fn main() -> Result<(), Box> { for item in all_items { println!( - "{} {}\n{}\n{}\n", - emojis::get_by_shortcode("newspaper").unwrap(), + "\x1b[1m>\x1b[0m \x1b[1;32m{}\x1b[0m\n\x1b[3m\x1b[2m{}\x1b[0m\n\x1b[2m{}\x1b[0m\n", Link::new(&item.title, &item.link), - trim_chars(&item.description).dimmed().italic(), - item.pub_date.to_string().dimmed().bold() + trim_chars(&item.description), + item.pub_date.to_string() ); } } else {