#github-api #rest #async

github_v3

Minimal async GitHub API v3 client

6 releases (stable)

1.1.0 Mar 20, 2024
1.0.3 Dec 20, 2022
1.0.2 Jan 25, 2022
1.0.0 Mar 27, 2021
0.3.2 Apr 11, 2020

#238 in HTTP client

Download history 56/week @ 2024-12-17 41/week @ 2024-12-24 38/week @ 2024-12-31 52/week @ 2025-01-07 48/week @ 2025-01-14 30/week @ 2025-01-21 3/week @ 2025-01-28 13/week @ 2025-02-04 20/week @ 2025-02-11 51/week @ 2025-02-18 59/week @ 2025-02-25 54/week @ 2025-03-04 60/week @ 2025-03-11 58/week @ 2025-03-18 55/week @ 2025-03-25 55/week @ 2025-04-01

233 downloads per month
Used in os-checker-plugin-github-…

CC0 license

17KB
290 lines

Async client for GitHub API v3 (application/vnd.github.v3+json)

Written for https://lib.rs. Supports only get() requests, because I didn't need more. PR's welcome.

  • Uses async/await and std::futures.

  • Supports streaming of GitHub's paged responses.

  • Automatically waits for responses that GitHub processes asynchronously in the background.

  • Automatically waits when hitting rate limit.

  • It's tiny, around 200 lines of code.

It relies on serde for parsing responses, so bring your own data model.

Dependencies

~6–18MB
~233K SLoC