mod advisories;
mod aur_vote;
mod comments;
mod details;
mod feeds;
pub mod news;
mod pkgbuild;
mod search;
pub mod status;
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
pub use advisories::fetch_security_advisories;
pub use aur_vote::{
AurPackageVoteState, AurVoteContext, AurVoteError, AurVoteOutcome, VoteAction, aur_vote,
aur_vote_state, is_vote_state_unsupported_error,
};
pub use comments::fetch_aur_comments;
pub use details::fetch_details;
pub use feeds::{
NewsFeedContext, check_circuit_breaker, extract_endpoint_pattern,
extract_retry_after_from_error, fetch_continuation_items, fetch_news_feed,
get_aur_json_changes, get_official_json_changes, increase_archlinux_backoff,
load_official_json_cache, official_json_cache_path, optimize_max_age_for_startup,
rate_limit_archlinux, record_circuit_breaker_outcome, reset_archlinux_backoff,
take_network_error,
};
pub use news::{fetch_arch_news, fetch_news_content, parse_news_html};
pub use pkgbuild::fetch_pkgbuild_fast;
pub use search::fetch_all_with_errors;
pub use status::fetch_arch_status_text;
#[cfg(not(target_os = "windows"))]
#[cfg(test)]
static TEST_MUTEX: std::sync::OnceLock<std::sync::Mutex<()>> = std::sync::OnceLock::new();
#[cfg(not(target_os = "windows"))]
#[cfg(test)]
pub(crate) fn test_mutex() -> &'static std::sync::Mutex<()> {
TEST_MUTEX.get_or_init(|| std::sync::Mutex::new(()))
}