chan/lib.rs
1//
2// ,dPYb,
3// IP'`Yb
4// I8 8I
5// I8 8'
6// ,gggg, I8 dPgg, ,gggg,gg ,ggg,,ggg, ,gggggg, ,g,
7// dP" "Yb I8dP" "8I dP" "Y8I ,8" "8P" "8, dP""""8I ,8'8,
8// i8' I8P I8 i8' ,8I I8 8I 8I ,8' 8I ,8' Yb
9// d8,_ _,d8 I8,,d8, ,d8b,,dP 8I Yb,,dP Y8,,8'_ 8)
10// ""Y8888PP88P `Y8P"Y8888P"`Y88P' 8I `Y88P `Y8P' "YY8P8P
11
12// MIT License
13//
14// Copyright (c) 2026 Servus Altissimi (pseudonym)
15//
16// Permission is hereby granted, free of charge, to any person obtaining a copy
17// of this software and associated documentation files (the "Software"), to deal
18// in the Software without restriction, including without limitation the rights
19// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20// copies of the Software, and to permit persons to whom the Software is
21// furnished to do so, subject to the following conditions:
22//
23// The above copyright notice and this permission notice shall be included in all
24// copies or substantial portions of the Software.
25//
26// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32// SOFTWARE.
33
34pub use tokio;
35
36pub mod archive;
37pub mod board;
38pub mod catalog;
39pub mod client;
40pub mod error;
41pub mod index;
42pub mod post;
43mod raw;
44pub mod thread;
45pub mod threadlist;
46
47pub use crate::archive::Archive;
48pub use crate::board::{Board, Cooldowns};
49pub use crate::catalog::{Catalog, CatalogPage, CatalogThread};
50pub use crate::client::{Client, Conditional, API_HOST, CDN_HOST};
51pub use crate::error::{Error, Result};
52pub use crate::index::IndexPage;
53pub use crate::post::{Attachment, Post};
54pub use crate::thread::Thread;
55pub use crate::threadlist::{ThreadList, ThreadListPage, ThreadStub};