Compare commits

...

12 commits
v0.0.3 ... main

Author SHA1 Message Date
66599dd600
fix: remove release action 2025-05-06 00:19:13 +01:00
25f39d8c9b
fix: update git repo links 2025-05-05 21:49:42 +01:00
d74625e2b3
docs: fix readme demo gif 2025-03-09 21:03:06 +00:00
d200bcb9b5
feat: build using forgejo actions
Some checks failed
Release / build (push) Has been cancelled
2025-03-08 16:59:37 +00:00
dependabot[bot]
a9d6c1b327
Bump ring from 0.17.8 to 0.17.13 in the cargo group (#8)
Bumps the cargo group with 1 update: [ring](https://github.com/briansmith/ring).


Updates `ring` from 0.17.8 to 0.17.13
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md)
- [Commits](https://github.com/briansmith/ring/commits)

---
updated-dependencies:
- dependency-name: ring
  dependency-type: indirect
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-08 15:07:27 +00:00
dependabot[bot]
631470324c
Bump the dev-dependencies group across 1 directory with 4 updates (#7)
Bumps the dev-dependencies group with 4 updates in the / directory: [chrono](https://github.com/chronotope/chrono), [clap](https://github.com/clap-rs/clap), [serde](https://github.com/serde-rs/serde) and [anyhow](https://github.com/dtolnay/anyhow).


Updates `chrono` from 0.4.39 to 0.4.40
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.39...v0.4.40)

Updates `clap` from 4.5.29 to 4.5.31
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.29...v4.5.31)

Updates `serde` from 1.0.217 to 1.0.218
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.217...v1.0.218)

Updates `anyhow` from 1.0.95 to 1.0.97
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.95...1.0.97)

---
updated-dependencies:
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-03 13:27:10 +00:00
dependabot[bot]
e091e03d5a
Bump the dev-dependencies group with 2 updates (#5)
Bumps the dev-dependencies group with 2 updates: [clap](https://github.com/clap-rs/clap) and [rss](https://github.com/rust-syndication/rss).


Updates `clap` from 4.5.28 to 4.5.29
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.28...clap_complete-v4.5.29)

Updates `rss` from 2.0.11 to 2.0.12
- [Release notes](https://github.com/rust-syndication/rss/releases)
- [Changelog](https://github.com/rust-syndication/rss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-syndication/rss/compare/2.0.11...2.0.12)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: rss
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 12:44:14 +00:00
dependabot[bot]
14b6923e60
Bump the dev-dependencies group with 2 updates (#4)
Bumps the dev-dependencies group with 2 updates: [clap](https://github.com/clap-rs/clap) and [toml](https://github.com/toml-rs/toml).


Updates `clap` from 4.5.27 to 4.5.28
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.27...clap_complete-v4.5.28)

Updates `toml` from 0.8.19 to 0.8.20
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.19...toml-v0.8.20)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 14:35:19 +00:00
1a1c5d24f6
test build in pull request 2025-02-10 14:31:12 +00:00
dependabot[bot]
adaa032f69
Bump openssl from 0.10.68 to 0.10.70 in the cargo group (#3)
Bumps the cargo group with 1 update: [openssl](https://github.com/sfackler/rust-openssl).


Updates `openssl` from 0.10.68 to 0.10.70
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.68...openssl-v0.10.70)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-03 22:34:38 +00:00
dependabot[bot]
64f06c65f9
Bump the dev-dependencies group with 2 updates (#2)
Bumps the dev-dependencies group with 2 updates: [clap](https://github.com/clap-rs/clap) and [indicatif](https://github.com/console-rs/indicatif).


Updates `clap` from 4.5.26 to 4.5.27
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.26...clap_complete-v4.5.27)

Updates `indicatif` from 0.17.9 to 0.17.11
- [Release notes](https://github.com/console-rs/indicatif/releases)
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.9...0.17.11)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: indicatif
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-03 12:13:32 +00:00
04dc5e28eb
reorder description trim chars 2025-01-31 19:04:29 +00:00
10 changed files with 389 additions and 275 deletions

1
.github/CODEOWNERS vendored
View file

@ -1 +0,0 @@
* @troylusty

View file

@ -1,10 +0,0 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
groups:
dev-dependencies:
patterns:
- "*"

View file

@ -1,28 +0,0 @@
name: Rust
on:
push:
tags:
- "v*.*.*"
env:
CARGO_TERM_COLOR: always
BIN_NAME: target/release/packard
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build release
run: cargo build --release
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: ${{ env.BIN_NAME }}

594
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,22 +1,22 @@
[package] [package]
name = "packard" name = "packard"
version = "0.0.3" version = "0.0.4"
edition = "2021" edition = "2021"
description = "A terminal based feed checker." description = "A terminal based feed checker."
authors = ["Troy Lusty <hello@troylusty.com>"] authors = ["Troy Lusty <hello@troylusty.com>"]
[dependencies] [dependencies]
chrono = "0.4.39" chrono = "0.4.41"
clap = { version = "4.5.26", features = ["derive"] } clap = { version = "4.5.37", features = ["derive"] }
reqwest = "0.12.12" reqwest = "0.12.15"
rss = "2.0.11" rss = "2.0.12"
serde = { version = "1.0.217", features = ["derive"] } serde = { version = "1.0.219", features = ["derive"] }
tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] } tokio = { version = "1.44.2", features = ["macros", "rt-multi-thread"] }
toml = "0.8.19" toml = "0.8.22"
xdg = "2.5.2" xdg = "2.5.2"
futures = "0.3.31" futures = "0.3.31"
indicatif = "0.17.9" indicatif = "0.17.11"
anyhow = "1.0.95" anyhow = "1.0.98"
[profile.dev] [profile.dev]
opt-level = 0 opt-level = 0

View file

@ -1,10 +1,10 @@
<div align="center"> <div align="center">
<h1>️📰 Packard</h1> <h1>️📰 Packard</h1>
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/troylusty/packard"> <img alt="Release" src="https://img.shields.io/gitea/v/release/troy/packard?gitea_url=https%3A%2F%2Fcode.threepop.com">
<h5>Packard is a simple RSS aggregator meant to allow you to take a quick glance at what's occurring in topics you care about.</h5> <h5>Packard is a simple RSS aggregator meant to allow you to take a quick glance at what's occurring in topics you care about.</h5>
</div> </div>
![Demo](https://github.com/user-attachments/assets/439f34ef-5c33-4bd1-bce1-1f0fa549794f) ![Demo](demo/demo.gif)
This is my first attempt at making something with Rust so that I may learn alongside creating something that I personally find useful. This is my first attempt at making something with Rust so that I may learn alongside creating something that I personally find useful.
@ -14,7 +14,7 @@ On NixOS you can install Packard by including it as an input in flake.nix, then
```nix ```nix
inputs = { inputs = {
packard.url = "github:troylusty/packard"; packard.url = "git+https://code.threepop.com/troy/packard";
}; };
... ...
@ -24,7 +24,7 @@ environment.systemPackages = {
}; };
``` ```
Alternatively, the [latest release](https://github.com/troylusty/packard/releases/latest) binary is available. Alternatively, the [latest release](https://github.com/threepop/packard/releases/latest) binary is available.
## Configuration ## Configuration

BIN
demo/demo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 KiB

View file

@ -6,5 +6,6 @@ pkgs.mkShell {
rustfmt rustfmt
pkg-config pkg-config
openssl openssl
cargo-edit
]; ];
} }

View file

@ -27,7 +27,7 @@ async fn main() -> Result<(), io::Error> {
"\x1b[1m>\x1b[0m \x1b[1;32m\x1b]8;;{}\x1b\\{}\x1b]8;;\x1b\\\x1b[0m\n\x1b[3m\x1b[2m{}\x1b[0m\n\x1b[2m{}\x1b[0m\n", "\x1b[1m>\x1b[0m \x1b[1;32m\x1b]8;;{}\x1b\\{}\x1b]8;;\x1b\\\x1b[0m\n\x1b[3m\x1b[2m{}\x1b[0m\n\x1b[2m{}\x1b[0m\n",
item.link, item.link,
item.title, item.title,
utils::remove_html_tags(&utils::trim_chars(&item.description)), utils::trim_chars(&utils::remove_html_tags(&item.description)),
item.pub_date.to_string() item.pub_date.to_string()
); );
} }