Skip to main content

ani_lib/
lib.rs

1// src/lib.rs
2//! Reusable Anikoto clients and cross-platform ani-cli support modules.
3
4mod anikoto;
5mod anikoto_cz;
6mod download;
7mod error;
8mod history;
9mod hls_relay;
10mod i18n;
11mod models;
12mod player;
13
14pub use anikoto::{AnikotoClient, AnikotoClientBuilder, provider_from_show_id, requires_hls_relay};
15pub use anikoto_cz::{AnikotoCzClient, AnikotoCzClientBuilder};
16pub use download::{DownloadOptions, download_stream};
17pub use error::{AniError, Result};
18pub use history::{HistoryEntry, HistoryStore};
19pub use hls_relay::{HlsRelay, relay_stream, relay_stream_without_hls_subtitles};
20pub use i18n::{I18n, Locale};
21pub use models::{
22    CatalogProvider, RequestHeaders, SearchOptions, SearchResult, StreamLink, SubtitleTrack,
23    TranslationType, choose_quality, expand_episode_selection,
24};
25pub use player::{Player, PlayerKind, PlayerOptions};