Skip to content

Commit

Permalink
v0.1.5 release - stable non-beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
daveajones committed Jun 28, 2022
1 parent 27e4675 commit be43a4e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aggrivator"
version = "0.1.4"
version = "0.1.5"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ that is less tightly coupled to the database.

## Worklog

v0.1.5
- Switched to Rustls-tls as the TLS library
- Some minor changes to version announcing

beta - v0.1.2
- File needs to be written even for unhandled status codes

Expand Down
15 changes: 10 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ use futures::StreamExt;
use httpdate;



//##: Global definitions
static USERAGENT: &str = "Aggrivator (PodcastIndex.org)/v0.1.2-beta";
static MAX_BODY_LENGTH: usize = 20971520;
const USERAGENT: &str = concat!("Aggrivator (PodcastIndex.org)/v", env!("CARGO_PKG_VERSION"));
const MAX_BODY_LENGTH: usize = 20971520;
//static DIR_FEED_FILES: &str = "feeds";
//static DIR_REDIRECT_FILES: &str = "redirects";
static ERRORCODE_GENERAL_CONNECTION_FAILURE: u16 = 666;
static ERRORCODE_GENERAL_DOWNLOAD_FAILURE: u16 = 667;
static ERRORCODE_GENERAL_FILE_SIZE_EXCEEDED: u16 = 668;
const ERRORCODE_GENERAL_CONNECTION_FAILURE: u16 = 666;
const ERRORCODE_GENERAL_DOWNLOAD_FAILURE: u16 = 667;
const ERRORCODE_GENERAL_FILE_SIZE_EXCEEDED: u16 = 668;


struct Podcast {
Expand Down Expand Up @@ -71,6 +72,10 @@ async fn main() {
// }
// create_dir(DIR_REDIRECT_FILES)?;

//Announce what we are
println!("{}", USERAGENT);
println!("{}\n", "-".repeat(USERAGENT.len()));

//Fetch urls
let podcasts = get_feeds_from_sql(sqlite_file);
match podcasts {
Expand Down

0 comments on commit be43a4e

Please sign in to comment.