Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • vn971/raur-fix-url-parsing
  • 2.0.2
3 results

raur

  • Clone with SSH
  • Clone with HTTPS
  • pipeline status

    raur

    raur is a library for interacting with the aurweb RPC Interface.

    See also the Arch wiki page for more information.

    Example

    use raur::Raur;
    
    let raur = raur::Handle::new();
    
    // Use `search` to search using keywords (multiple strategies available)
    let pkgs = raur.search("pacman").await?;
    assert!(pkgs.len() > 10);
    
    for pkg in pkgs {
        println!("{:<30}{}", pkg.name, pkg.version);
    }
    
    // Use `info` to get info about a list of packages. Not-found packages are silently ignored.
    let pkgs = raur.info(&["spotify", "discord-canary"]).await?;
    assert_eq!(pkgs.len(), 2);
    
    for pkg in pkgs {
        println!("{:<30}{}", pkg.name, pkg.version);
    }