8个版本
| 0.4.0 | 2024年1月20日 | 
|---|---|
| 0.3.5 | 2023年12月13日 | 
| 0.3.4 | 2023年9月5日 | 
| 0.3.3 | 2023年8月3日 | 
| 0.2.0 | 2023年7月19日 | 
#329 in 测试
每月下载量168次
用于 codecov-cache
28KB
661 行
rust-codecov
描述
Codecov API(v2)的轻量级包装。https://docs.codecov.com/reference/overview
用法
use codecov::{Client, owner::Owner};
fn main() {
    // let client = Client::new("1234-5678-9012-3456"); // Set token directly
    let client = Client::new_from_env().unwrap();  // Read CODECOV_OWNER_TOKEN from environment variable
    let owner = Owner::new("github", "kitsuyui");
    let repos = client.get_all_repos(&owner).unwrap();
    println!("{:?}", repos);
    let author = owner.new_author("rust-codecov");
    let repo_detail = client.get_branch_detail(&author, "main").unwrap();
    println!("{:?}", repo_detail);
    println!("{}", repo_detail.latest_coverage());
}
许可证
BSD-3-Clause
依赖
~4–15MB
~219K SLoC