14 个版本 (9 个重大更新)
0.10.1 | 2024年4月24日 |
---|---|
0.9.1 | 2024年4月19日 |
0.9.0 | 2023年12月5日 |
0.8.0 | 2023年9月15日 |
0.4.0 | 2022年11月19日 |
在 认证 中排名 247
每月下载量 74
被 3 个 包使用
83KB
2K SLoC
Azalea Auth
Mojang 的 Authlib 和启动器认证的移植。
示例
use std::path::PathBuf;
#[tokio::main]
async fn main() {
let cache_file = PathBuf::from("example_cache.json");
let auth_result = azalea_auth::auth(
"[email protected]",
azalea_auth::AuthOpts {
cache_file: Some(cache_file),
..Default::default()
},
)
.await
.unwrap();
println!("{auth_result:?}");
}
依赖项
~12–24MB
~377K SLoC