8 breaking releases
0.11.0 | Nov 27, 2023 |
---|---|
0.8.0 | Nov 22, 2023 |
#37 in #github-api
26 downloads per month
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
-
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
No runtime deps
~160KB