http_cat

Crates.iohttp_cat
lib.rshttp_cat
version0.1.0
sourcesrc
created_at2023-12-07 21:35:44.171431
updated_at2023-12-07 21:35:44.171431
descriptionRust wrapper around http.cat
homepage
repositoryhttps://github.com/valentinegb/http-cat-rs
max_upload_size
id1061337
size38,626
Valentine Briese (valentinegb)

documentation

README

http_cat

Rust wrapper around http.cat

The simplest way to use http_cat is like so:

use http_cat::HttpCat;

#[tokio::main]
async fn main() {
    HttpCat::ImATeapot.get().await.unwrap().save("418.jpeg").unwrap();
}

This is the resulting image:

418

You can also optionally enable the http and/or rocket features to convert those libraries' own status structures to HttpCat with ::try_from().

[dependencies]
http_cat = { version = "0.1.0", features = ["rocket"] }
Commit count: 20

cargo fmt