#github-api #github #github-actions #const #structs #automatic #workflow

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

#13 in #github-actions

Download history 2/week @ 2024-01-01 16/week @ 2024-01-08 30/week @ 2024-01-15 34/week @ 2024-01-22 9/week @ 2024-02-05 30/week @ 2024-02-19 35/week @ 2024-02-26 40/week @ 2024-03-04 36/week @ 2024-03-11 39/week @ 2024-03-18 5/week @ 2024-03-25 286/week @ 2024-04-01

369 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

~145KB