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