favilib
Favicon Fetcher written in Rust. Contains library as well as CLI tool
Warning: This is a work in progress. The library is not yet stable and the CLI tool is not yet implemented.
Library Usage
use ;
let url = parse.unwrap;
// Fetch and export image directly
let _ = fetch;
// Fetch image and get it as a struct
let client = new;
let favicon = fetch.unwrap;
let resized_favicon = favicon.resize.unwrap;
let reformatted_favicon = resized_favicon.change_format.unwrap;
reformatted_favicon.export.unwrap;
CLI Usage
# Format will be changed based on the file ending
# Format can also be specified explicitly and bytes can be printed to stdout if path is omitted. And size can be specified explicitly
# Prints the extracted URL of the favicon to stdout
# Adds custom headers to the client fetching the Favicon