Crate rss2email_lib

Source

Modules§

email
Constructs and sends emails from different providers.
logger
This file contains wrapper macros for the env_logger crate. I specifically wanted to wrap around warn as I wanted all warnings to panic if they occurred in the Github Actions workflow.
xml
Parses web feeds according to the RSS and Atom specifications and constructs Blogs and Posts.

Macros§

error
Calls log::error!.
info
Calls log::info!.
warn
Calls log::warn! if executed outside of Github Actions. If it is executed inside of GA, it instead panics. This is done to make sure that no warnings are missed during a workflow run. GA sets an environment variable CI=TRUE which is how I determine if this should panic or not.

Structs§

Blog
Internal representation of a web feed.
Post
Internal representation of a web feed post.

Enums§

Error
Represents anything that could go wrong when dealing with web feeds.

Functions§

download_blogs
Downloads all the web feeds specified in feeds.txt and converts them to Blogs.
get_page_async
Helper function for downloading the contents of a web page.
html_title
A basic

element with the current date.

map_to_html
Generates the HTML contents corresponding to the given Blog collection.
read_feeds
Parses links from feeds.txt.
time_func
Helper function that times and prints the elapsed execution time of F if ran in debug mode.