pacsea/sources/news/
mod.rs

1//! Arch Linux news fetching and parsing.
2
3mod aur;
4mod cache;
5mod fetch;
6mod parse;
7mod utils;
8
9/// Result type alias for Arch Linux news fetching operations.
10type Result<T> = super::Result<T>;
11
12pub use fetch::{fetch_arch_news, fetch_news_content};
13pub use parse::parse_arch_news_html;
14
15/// What: Parse raw news/advisory HTML into displayable text (public helper).
16///
17/// Inputs:
18/// - `html`: Raw HTML source to parse.
19///
20/// Output:
21/// - Plaintext content suitable for the details view.
22#[must_use]
23pub fn parse_news_html(html: &str) -> String {
24    parse_arch_news_html(html, None)
25}
26
27#[cfg(test)]
28mod tests;
29
30#[cfg(test)]
31mod tests_aur;