Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

kitsuyui/rust-codecov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

190 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-codecov

Crates.io crates.io docs.rs License: BSD-3-Clause

Description

A thin wrapper for Codecov API (v2). https://docs.codecov.com/reference/overview

Archive

This project is archived and no longer maintained because I no longer use Codecov.

Usage

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());
}

LICENSE

BSD-3-Clause

About

Codecov API (v2) package for Rust https://about.codecov.io/blog/getting-started-with-the-codecov-api-v2/

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors