7 个版本

0.2.2 2022年11月5日
0.2.1 2022年9月25日
0.1.3 2022年9月3日
0.1.2 2022年8月24日
0.1.1 2022年7月24日

#1035 in Unix APIs

Download history • Rust 包仓库 6/week @ 2024-04-14 • Rust 包仓库 8/week @ 2024-04-21 • Rust 包仓库 21/week @ 2024-04-28 • Rust 包仓库 5/week @ 2024-05-05 • Rust 包仓库 7/week @ 2024-05-12 • Rust 包仓库 9/week @ 2024-05-19 • Rust 包仓库 14/week @ 2024-05-26 • Rust 包仓库 16/week @ 2024-06-02 • Rust 包仓库 14/week @ 2024-06-09 • Rust 包仓库 15/week @ 2024-06-16 • Rust 包仓库 8/week @ 2024-06-23 • Rust 包仓库 80/week @ 2024-07-07 • Rust 包仓库 36/week @ 2024-07-14 • Rust 包仓库 33/week @ 2024-07-21 • Rust 包仓库 20/week @ 2024-07-28 • Rust 包仓库

169 每月下载量

Apache-2.0

11KB
226 代码行,不含注释

aur-rpc

这个crate是一个针对Arch Linux用户仓库(AUR)调用的异步包装器。

示例

#[tokio::main]
pub async fn main() {
   let packages = aur_rpc::search("yay").await.unwrap();

   for package in packages {
       println!("{} - {}", package.name, package.maintainer);
   }
   
   let mut infos = aur_rpc::info(["mediarepo"]).await.unwrap();
   let info = infos.pop().expect("package not found");
   println!("{}", info.metadata.popularity);
}

许可证

Apache 2.0


lib.rs:

aur-rpc

这个crate为Arch Linux用户仓库(AUR)提供的rpc提供抽象。

用法

#[tokio::main]
pub async fn main() {
    let packages = aur_rpc::search("yay").await.unwrap();

    for package in packages {
        println!("{} - {:?}", package.name, package.maintainer);
    }
    
    let mut infos = aur_rpc::info(["mediarepo"]).await.unwrap();
    let info = infos.pop().expect("package not found");
    println!("{}", info.metadata.popularity);
}

依赖项

~4–16MB
~235K SLoC