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.
Library
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
Installation
CLI can be installed via cargo by running cargo install favilib
Interface
# 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