#github-api

github-meta

https://api.github.com/meta as const structs

8 breaking releases

0.11.0 Nov 27, 2023
0.8.0 Nov 22, 2023

#23 in #github-api

Download history 37/week @ 2024-06-13 39/week @ 2024-06-20 23/week @ 2024-06-27 40/week @ 2024-07-04 21/week @ 2024-07-11 24/week @ 2024-07-18 81/week @ 2024-07-25 40/week @ 2024-08-01 37/week @ 2024-08-08 14/week @ 2024-08-15 15/week @ 2024-08-22 25/week @ 2024-08-29 25/week @ 2024-09-05 22/week @ 2024-09-12 38/week @ 2024-09-19 50/week @ 2024-09-26

149 downloads per month

MIT/Apache

21KB
201 lines

github-meta

https://api.github.com/meta as const structs

Description

If the data from https://api.github.com/meta is used in a Rust program, it can be slow to fetch it every time. This crate provides the data as const structs, so it can be compiled into the program.

An hourly GitHub Actions workflow updates the data in this crate automatically and releases a new version of the crate if the data has changed.

Usage

fn main() {
    let meta = github_meta::META;
    println!("{meta:#?}");
    let secret_scanning = github_meta::SECRET_SCANNING;
    println!("{secret_scanning:#?}");
}

License

This project is licensed under either of

at your option.

No runtime deps

~160KB