Crate rss2email_lib
source ·Modules
- Constructs and sends emails from different providers.
- This file contains wrapper macros for the
env_loggercrate. I specifically wanted to wrap aroundwarnas I wanted all warnings to panic if they occured in the Github Actions workflow.
Macros
- Calls
log::error!. - Calls
log::info!. - 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 variableCI=TRUEwhich is how I determine if this should panic or not.
Structs
- Internal representation of a web feed.
- Internal representation of a web feed post.
Enums
- Represents anything that could go wrong when dealing with web feeds.
Functions
- Downloads all the web feeds specified in
feeds.txtand converts them toBlogs. - Helper function for downloading the contents of a web page.
- Generates the HTML contents corresponding to the given Blog collection.
- Parses links from
feeds.txt. - Helper function that times and prints the elapsed execution time of
Fif ran in debug mode.