Skip to main content

fetch_aur_comments

Function fetch_aur_comments 

Source
pub async fn fetch_aur_comments(
    pkgname: String,
) -> Result<Vec<AurComment>, Box<dyn Error + Send + Sync>>
Expand description

What: Fetch AUR package comments through arch-toolkit.

Inputs:

  • pkgname: Package name to fetch comments for.

Output:

  • Parsed comments with stable IDs, timestamps, links, formatting, and pinned status.

ยงErrors

Returns an error when client construction, bounded retrieval, validation, or parsing fails.

Details:

  • Standalone callers construct a configured context; runtime workers share one context through [fetch_aur_comments_with_context]. arch-toolkit bounds the streamed response to 10 MiB.