catbox/lib.rs
1#![allow(clippy::missing_errors_doc)]
2
3//! Unofficial library implementing catbox.moe's API in Rust
4//!
5//! Separates funtionalities into three modules:
6//! * `file` for uploading and deleting singular files
7//! * `album` for album operations with existing files on Catbox
8//! * `litter` for uploading temporary files to Litterbox
9//!
10//! See <https://catbox.moe/faq.php> for allowed filetypes and content,
11//! as well as other questions.
12//!
13//! Consider donating via <https://www.patreon.com/catbox> to help with server costs.
14
15mod helper;
16
17pub mod album;
18pub mod file;
19pub mod litter;
20
21static CATBOX_API_URL: &str = "https://catbox.moe/user/api.php";
22static LITTER_API_URL: &str = "https://litterbox.catbox.moe/resources/internals/api.php";
23static UASTRING: &str = concat!(
24 env!("CARGO_PKG_NAME"),
25 "/",
26 env!("CARGO_PKG_VERSION"),
27 " (CLI tool NOT endorsed on the tools page :3) ~ APT37"
28);