github-meta

Crates.iogithub-meta
lib.rsgithub-meta
version0.11.0
sourcesrc
created_at2023-11-13 06:13:06.091713
updated_at2023-11-27 17:50:07.949621
descriptionhttps://api.github.com/meta as const structs
homepage
repositoryhttps://github.com/Turbo87/github-meta
max_upload_size
id1033295
size113,025
Tobias Bieniek (Turbo87)

documentation

README

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.

Commit count: 35

cargo fmt