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

github-meta

https://api.github.com/meta 作为 const 结构体

8 次重大发布

0.11.0 2023年11月27日
0.8.0 2023年11月22日

#21 in #github-api

Download history 21/week @ 2024-04-08 22/week @ 2024-04-15 55/week @ 2024-04-22 192/week @ 2024-04-29 26/week @ 2024-05-06 13/week @ 2024-05-13 32/week @ 2024-05-20 11/week @ 2024-05-27 16/week @ 2024-06-03 47/week @ 2024-06-10 28/week @ 2024-06-17 34/week @ 2024-06-24 42/week @ 2024-07-01 19/week @ 2024-07-08 18/week @ 2024-07-15 47/week @ 2024-07-22

每月下载量 129

MIT/Apache

21KB
201

github-meta

https://api.github.com/meta 作为 const 结构体

描述

如果将 https://api.github.com/meta 的数据用于 Rust 程序,每次获取它都可能很慢。这个包提供了作为 const 结构体的数据,因此可以将其编译到程序中。

每小时 GitHub Actions 工作流会自动更新此包中的数据,并在数据更改时发布新的包版本。

用法

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

许可证

此项目根据您的选择许可以下任一项

无运行时依赖

~165KB