3 个版本 (稳定)

1.0.1 2024 年 8 月 17 日
0.1.1 2024 年 8 月 15 日

#472 in 网页编程

Download history 395/week @ 2024-08-13

每月 395 次下载

MIT 许可证

250KB
6K SLoC

Rust 5K SLoC // 0.0% comments Mustache 757 SLoC // 0.0% comments

archaeologist

Artifacts 的 Rust 封装,Artifacts 是一个基于 API 的沙盒多人在线游戏。

openapi-generator 生成。

示例用法

use archaeologist::{
    apis::{configuration::Configuration, my_account_api},
    models::GoldBankResponseSchema,
};

#[tokio::main]
async fn main() {
    let mut config = Configuration::new();
    config.bearer_access_token = Some("YOUR_TOKEN".to_owned());

    match my_account_api::get_bank_gold(&config).await {
        Ok(GoldBankResponseSchema { data }) => println!("{:?}", data),
        Err(err) => panic!("{}", err),
    }
}

依赖关系

~7–19MB
~278K SLoC