1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # wiky
//!
//! A beautiful, colorful Wikipedia CLI and library with full Markdown rendering,
//! emoji support, hex color theming, and a TOML-based config system.
//!
//! ## Library Usage
//!
//! ```rust,no_run
//! use wiky::{WikiClient, Config};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let config = Config::load()?;
//! let client = WikiClient::new(config)?;
//!
//! // Search Wikipedia
//! let results = client.search("Rust programming language", 5).await?;
//! for r in &results {
//! println!("{}: {}", r.title, r.snippet);
//! }
//!
//! // Fetch and render a full article
//! let article = client.fetch_article("Rust (programming language)").await?;
//! println!("{}", article.title);
//!
//! Ok(())
//! }
//! ```
pub use WikiClient;
pub use Config;
pub use WikiError;
pub use Renderer;
pub use Theme;
/// Re-export core types for convenience.