Compare commits
No commits in common. "main" and "v0.0.3" have entirely different histories.
10 changed files with 270 additions and 384 deletions
1
.github/CODEOWNERS
vendored
Normal file
1
.github/CODEOWNERS
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
* @troylusty
|
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "cargo"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
groups:
|
||||||
|
dev-dependencies:
|
||||||
|
patterns:
|
||||||
|
- "*"
|
28
.github/workflows/rust.yml
vendored
Normal file
28
.github/workflows/rust.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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 }}
|
584
Cargo.lock
generated
584
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
20
Cargo.toml
20
Cargo.toml
|
@ -1,22 +1,22 @@
|
||||||
[package]
|
[package]
|
||||||
name = "packard"
|
name = "packard"
|
||||||
version = "0.0.4"
|
version = "0.0.3"
|
||||||
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.41"
|
chrono = "0.4.39"
|
||||||
clap = { version = "4.5.37", features = ["derive"] }
|
clap = { version = "4.5.26", features = ["derive"] }
|
||||||
reqwest = "0.12.15"
|
reqwest = "0.12.12"
|
||||||
rss = "2.0.12"
|
rss = "2.0.11"
|
||||||
serde = { version = "1.0.219", features = ["derive"] }
|
serde = { version = "1.0.217", features = ["derive"] }
|
||||||
tokio = { version = "1.44.2", features = ["macros", "rt-multi-thread"] }
|
tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] }
|
||||||
toml = "0.8.22"
|
toml = "0.8.19"
|
||||||
xdg = "2.5.2"
|
xdg = "2.5.2"
|
||||||
futures = "0.3.31"
|
futures = "0.3.31"
|
||||||
indicatif = "0.17.11"
|
indicatif = "0.17.9"
|
||||||
anyhow = "1.0.98"
|
anyhow = "1.0.95"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 0
|
opt-level = 0
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<h1>️📰 Packard</h1>
|
<h1>️📰 Packard</h1>
|
||||||
<img alt="Release" src="https://img.shields.io/gitea/v/release/troy/packard?gitea_url=https%3A%2F%2Fcode.threepop.com">
|
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/troylusty/packard">
|
||||||
<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>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
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 = "git+https://code.threepop.com/troy/packard";
|
packard.url = "github:troylusty/packard";
|
||||||
};
|
};
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -24,7 +24,7 @@ environment.systemPackages = {
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, the [latest release](https://github.com/threepop/packard/releases/latest) binary is available.
|
Alternatively, the [latest release](https://github.com/troylusty/packard/releases/latest) binary is available.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
|
BIN
demo/demo.gif
BIN
demo/demo.gif
Binary file not shown.
Before Width: | Height: | Size: 761 KiB |
|
@ -6,6 +6,5 @@ pkgs.mkShell {
|
||||||
rustfmt
|
rustfmt
|
||||||
pkg-config
|
pkg-config
|
||||||
openssl
|
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",
|
"\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::trim_chars(&utils::remove_html_tags(&item.description)),
|
utils::remove_html_tags(&utils::trim_chars(&item.description)),
|
||||||
item.pub_date.to_string()
|
item.pub_date.to_string()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue