4个版本 (2个破坏性更新)
0.3.0 | 2023年12月22日 |
---|---|
0.2.1 | 2022年1月13日 |
0.2.0 | 2021年11月3日 |
0.1.0 | 2021年10月31日 |
#590 in 异步
20KB
406 代码行
Foxhole API
非官方的Foxhole War API的Rust封装。
依赖项
此库需要使用tokio作为异步运行时。
用法
[dependencies]
foxhole-api = "0.2"
示例
use foxhole_api::Client;
#[tokio::main]
async fn main() {
// The default shard is Live-1
let client = Client::default();
let war_data = client.war_data().await.unwrap();
let map_names = client.map_names().await.unwrap();
let static_map_data = client.map_data_static("TheFingersHex".to_string()).await.unwrap();
let dynamic_map_data = client.map_data_dynamic("TheFingersHex".to_string()).await.unwrap();
}
贡献
欢迎提交PR和功能请求!
Foxhole 是 Siege Camp 的注册商标。
依赖项
~4–19MB
~237K SLoC