5个版本
0.2.2 | 2023年10月29日 |
---|---|
0.2.1 | 2023年8月6日 |
0.2.0 | 2022年11月14日 |
0.1.1 | 2022年8月19日 |
0.1.0 | 2022年6月18日 |
715 在 游戏 中
每月42次 下载
用于 rbx_api
32KB
512 行
rbx_auth
构建一个可以传递给 reqwest
客户端的头映射和cookie jar,用于向Roblox API发送认证请求。最佳搭配 rbx_api
crate 使用。可作为库和CLI使用。
CLI
使用 cargo install rbx_auth
安装。
rbx_auth --help
库
使用 cargo add rbx_auth --no-default-features
禁用默认功能以排除CLI依赖项,或使用 default-features = false
配置
# Cargo.toml
[dependencies]
rbx_auth = { version = "<version>", default-features = false }
use rbx_auth::{RobloxAuth, WithRobloxAuth};
let auth = RobloxAuth::new().await?;
let client = reqwest::Client::builder()
.user_agent("Roblox/WinInet")
.roblox_auth(auth)
.build()?;
依赖项
~7–20MB
~309K SLoC