A thin wrapper for Codecov API (v2). https://docs.codecov.com/reference/overview
```rust use codecov::{Client, owner::Owner};
fn main() { // let client = Client::new("1234-5678-9012-3456"); // Set token directly let client = Client::newfromenv().unwrap(); // Read CODECOVOWNERTOKEN from environment variable let owner = Owner::new("github", "kitsuyui"); let repos = client.getallrepos(&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