Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
66599dd600 | |||
25f39d8c9b | |||
d74625e2b3 | |||
d200bcb9b5 | |||
![]() |
a9d6c1b327 | ||
![]() |
631470324c | ||
![]() |
e091e03d5a | ||
![]() |
14b6923e60 | ||
1a1c5d24f6 | |||
![]() |
adaa032f69 | ||
![]() |
64f06c65f9 | ||
04dc5e28eb |
10 changed files with 389 additions and 275 deletions
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
|
@ -1 +0,0 @@
|
|||
* @troylusty
|
10
.github/dependabot.yml
vendored
10
.github/dependabot.yml
vendored
|
@ -1,10 +0,0 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "cargo"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
groups:
|
||||
dev-dependencies:
|
||||
patterns:
|
||||
- "*"
|
28
.github/workflows/rust.yml
vendored
28
.github/workflows/rust.yml
vendored
|
@ -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
594
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
20
Cargo.toml
20
Cargo.toml
|
@ -1,22 +1,22 @@
|
|||
[package]
|
||||
name = "packard"
|
||||
version = "0.0.3"
|
||||
version = "0.0.4"
|
||||
edition = "2021"
|
||||
description = "A terminal based feed checker."
|
||||
authors = ["Troy Lusty <hello@troylusty.com>"]
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.4.39"
|
||||
clap = { version = "4.5.26", features = ["derive"] }
|
||||
reqwest = "0.12.12"
|
||||
rss = "2.0.11"
|
||||
serde = { version = "1.0.217", features = ["derive"] }
|
||||
tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] }
|
||||
toml = "0.8.19"
|
||||
chrono = "0.4.41"
|
||||
clap = { version = "4.5.37", features = ["derive"] }
|
||||
reqwest = "0.12.15"
|
||||
rss = "2.0.12"
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
tokio = { version = "1.44.2", features = ["macros", "rt-multi-thread"] }
|
||||
toml = "0.8.22"
|
||||
xdg = "2.5.2"
|
||||
futures = "0.3.31"
|
||||
indicatif = "0.17.9"
|
||||
anyhow = "1.0.95"
|
||||
indicatif = "0.17.11"
|
||||
anyhow = "1.0.98"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 0
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div align="center">
|
||||
<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>
|
||||
</div>
|
||||
|
||||

|
||||

|
||||
|
||||
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
|
||||
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
|
||||
|
||||
|
|
BIN
demo/demo.gif
Normal file
BIN
demo/demo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 761 KiB |
|
@ -6,5 +6,6 @@ pkgs.mkShell {
|
|||
rustfmt
|
||||
pkg-config
|
||||
openssl
|
||||
cargo-edit
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
item.link,
|
||||
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()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue