Compare commits
9 Commits
Author | SHA1 | Date |
---|---|---|
Bauke | 685281dbc4 | |
Bauke | 29c6f96173 | |
Bauke | 40cb942487 | |
Bauke | f8d9a66c9a | |
Bauke | 6ab3c6fdb4 | |
Bauke | 5e7beec2b6 | |
Bauke | 64398f7211 | |
Bauke | c5b5173e19 | |
Bauke | 62a402887c |
|
@ -1,6 +1,5 @@
|
|||
# Generated by Cargo
|
||||
/result
|
||||
.direnv/
|
||||
coverage/
|
||||
debug/
|
||||
target/
|
||||
|
||||
# Code coverage results
|
||||
coverage/
|
||||
|
|
File diff suppressed because it is too large
Load Diff
23
Cargo.toml
23
Cargo.toml
|
@ -1,9 +1,9 @@
|
|||
[package]
|
||||
name = "steam-rss"
|
||||
description = "Get RSS feeds for Steam games."
|
||||
repository = "https://git.bauke.xyz/Bauke/steam-rss"
|
||||
repository = "https://github.com/Bauke/steam-rss"
|
||||
license = "AGPL-3.0-or-later"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
authors = ["Bauke <me@bauke.xyz>"]
|
||||
edition = "2021"
|
||||
|
||||
|
@ -11,14 +11,21 @@ edition = "2021"
|
|||
name = "steam-rss"
|
||||
path = "source/main.rs"
|
||||
|
||||
[lints.clippy]
|
||||
missing_docs_in_private_items = "warn"
|
||||
|
||||
[lints.rust]
|
||||
missing_docs = "warn"
|
||||
unsafe_code = "forbid"
|
||||
|
||||
[dependencies]
|
||||
color-eyre = "0.6.2"
|
||||
opml = "1.1.4"
|
||||
regex = "1.6.0"
|
||||
serde = "1.0.144"
|
||||
serde_json = "1.0.85"
|
||||
ureq = "2.5.0"
|
||||
opml = "1.1.6"
|
||||
regex = "1.10.3"
|
||||
serde = "1.0.195"
|
||||
serde_json = "1.0.111"
|
||||
ureq = "2.9.1"
|
||||
|
||||
[dependencies.clap]
|
||||
features = ["derive"]
|
||||
version = "3.2.22"
|
||||
version = "4.4.18"
|
||||
|
|
|
@ -1,33 +1,21 @@
|
|||
[tasks.fmt]
|
||||
command = "cargo"
|
||||
args = ["fmt", "${@}"]
|
||||
|
||||
[tasks.check]
|
||||
command = "cargo"
|
||||
args = ["check", "${@}"]
|
||||
|
||||
[tasks.clippy]
|
||||
command = "cargo"
|
||||
args = ["clippy", "${@}"]
|
||||
|
||||
[tasks.test]
|
||||
command = "cargo"
|
||||
args = ["test", "${@}"]
|
||||
|
||||
[tasks.doc]
|
||||
command = "cargo"
|
||||
args = ["doc", "${@}"]
|
||||
|
||||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build", "${@}"]
|
||||
|
||||
# Do a full check of everything.
|
||||
[tasks.complete-check]
|
||||
dependencies = ["fmt", "check", "clippy", "test", "doc", "build"]
|
||||
dependencies = [
|
||||
"format",
|
||||
"spellcheck",
|
||||
"check",
|
||||
"clippy",
|
||||
"test",
|
||||
"code-coverage",
|
||||
"docs",
|
||||
"build",
|
||||
"audit-flow",
|
||||
"outdated-flow",
|
||||
]
|
||||
|
||||
# Run cargo-tarpaulin and output the test coverage.
|
||||
[tasks.code-coverage]
|
||||
workspace = false
|
||||
install_crate = "cargo-tarpaulin"
|
||||
command = "cargo"
|
||||
args = [
|
||||
"tarpaulin",
|
||||
|
@ -35,5 +23,10 @@ args = [
|
|||
"--out=html",
|
||||
"--output-dir=coverage",
|
||||
"--skip-clean",
|
||||
"--target-dir=target/tarpaulin"
|
||||
"--target-dir=target/tarpaulin",
|
||||
]
|
||||
|
||||
# Do a source code spellcheck.
|
||||
[tasks.spellcheck]
|
||||
clear = true
|
||||
command = "typos"
|
||||
|
|
24
README.md
24
README.md
|
@ -1,4 +1,4 @@
|
|||
# Steam ❤️ RSS
|
||||
# Steam ❤ RSS
|
||||
|
||||
> **Get RSS feeds for Steam games.**
|
||||
|
||||
|
@ -19,9 +19,25 @@ With a working [Rust and Cargo](https://www.rust-lang.org/learn/get-started) ins
|
|||
cargo install steam-rss
|
||||
```
|
||||
|
||||
### Binaries
|
||||
## Usage
|
||||
|
||||
Precompiled `x86_64-unknown-linux-gnu` binaries are available on the [Releases page](https://git.bauke.xyz/Bauke/steam-rss/releases).
|
||||
```
|
||||
USAGE:
|
||||
steam-rss [OPTIONS]
|
||||
|
||||
OPTIONS:
|
||||
-a, --appid <APPID> A game's AppID, can be used multiple times
|
||||
-h, --help Print help information
|
||||
--opml Output the feeds as OPML
|
||||
-t, --timeout <TIMEOUT> The time in milliseconds to sleep between HTTP requests [default:
|
||||
250]
|
||||
--url <URL> A game's store URL, can be used multiple times
|
||||
--user <USER> A person's steamcommunity.com ID or full URL, can be used multiple
|
||||
times
|
||||
-v, --verify Verify potential feeds by downloading them and checking if they
|
||||
return XML
|
||||
-V, --version Print version information
|
||||
```
|
||||
|
||||
## Feedback
|
||||
|
||||
|
@ -29,4 +45,4 @@ Found a problem or want to request a new feature? Email [me@bauke.xyz](mailto:me
|
|||
|
||||
## License
|
||||
|
||||
Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](LICENSE) for more information.
|
||||
Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://github.com/Bauke/steam-rss/blob/main/LICENSE) for more information.
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "steam-rss";
|
||||
version = "0.2.2";
|
||||
src = ./.;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Get RSS feeds for Steam games";
|
||||
homepage = "https://github.com/Bauke/steam-rss";
|
||||
changelog = "https://github.com/Bauke/steam-rss/releases/tag/${version}";
|
||||
license = with licenses; [ agpl3Plus ];
|
||||
maintainers = with maintainers; [ Bauke ];
|
||||
mainProgram = "steam-rss";
|
||||
};
|
||||
}
|
|
@ -0,0 +1,128 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1705309234,
|
||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_2": {
|
||||
"inputs": {
|
||||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1681202837,
|
||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1706173671,
|
||||
"narHash": "sha256-lciR7kQUK2FCAYuszyd7zyRRmTaXVeoZsCyK6QFpGdk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4fddc9be4eaf195d631333908f2a454b03628ee5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1681358109,
|
||||
"narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "96ba1c52e54e74c3197f4d43026b3f3d92e83ff9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"rust-overlay": "rust-overlay"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_2",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1706235145,
|
||||
"narHash": "sha256-3jh5nahTlcsX6QFcMPqxtLn9p9CgT9RSce5GLqjcpi4=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "3a57c4e29cb2beb777b2e6ae7309a680585b8b2f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_2": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
inputs = {
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
rust-overlay,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
overlays = [ (import rust-overlay) ];
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
in
|
||||
{
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
packages.default = pkgs.callPackage ./. { };
|
||||
}
|
||||
);
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
[toolchain]
|
||||
channel = "stable"
|
||||
components = ["cargo", "clippy", "rustfmt", "rust-src"]
|
|
@ -0,0 +1,18 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
with pkgs;
|
||||
|
||||
let
|
||||
rustup-toolchain = rust-bin.fromRustupToolchainFile ./rustup-toolchain.toml;
|
||||
in
|
||||
mkShell rec {
|
||||
packages = [
|
||||
cargo-audit
|
||||
cargo-edit
|
||||
cargo-make
|
||||
cargo-outdated
|
||||
cargo-tarpaulin
|
||||
rustup-toolchain
|
||||
typos
|
||||
];
|
||||
}
|
|
@ -1,26 +1,6 @@
|
|||
// Copyright (C) 2022 Bauke <me@bauke.xyz>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Affero General Public License as published by the Free
|
||||
// Software Foundation, either version 3 of the License, or (at your option) any
|
||||
// later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
// FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
// details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
//! # Steam RSS
|
||||
//!
|
||||
//! > **Get RSS feeds for Steam games.**
|
||||
//!
|
||||
//! *AGPL-3.0-or-later*
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![warn(missing_docs, clippy::missing_docs_in_private_items)]
|
||||
|
||||
use std::{thread::sleep, time::Duration};
|
||||
|
||||
|
@ -105,7 +85,7 @@ fn main() -> Result<()> {
|
|||
let timeout = Duration::from_millis(args.timeout);
|
||||
|
||||
let ureq_agent = ureq::AgentBuilder::new()
|
||||
.user_agent("Steam Feeds (https://git.bauke.xyz/Bauke/steam-rss)")
|
||||
.user_agent("Steam Feeds (https://github.com/Bauke/steam-rss)")
|
||||
.build();
|
||||
let mut potential_feeds = vec![];
|
||||
let mut feeds_to_output = vec![];
|
||||
|
|
Loading…
Reference in New Issue