playerdb client with support for async/sync.
Go to file
Wynd 25863f9e46 Added some basic examples in the README 2024-04-21 16:22:28 +03:00
examples Added some basic examples in the README 2024-04-21 16:22:28 +03:00
src Initial commit 2024-04-21 15:23:17 +03:00
.editorconfig Initial commit 2024-04-21 15:23:17 +03:00
.gitignore Added some basic examples in the README 2024-04-21 16:22:28 +03:00
Cargo.toml Initial commit 2024-04-21 15:23:17 +03:00
LICENSE Initial commit 2024-04-21 15:23:17 +03:00
README.md Added some basic examples in the README 2024-04-21 16:22:28 +03:00
rust-toolchain.toml Initial commit 2024-04-21 15:23:17 +03:00
rustfmt.toml Initial commit 2024-04-21 15:23:17 +03:00

README.md

playerdb-rs

playerdb client with support for async/sync.

Examples

Async (using Tokio)

let api = playerdb_rs::PlayerDBApi::default();
let result = api.get_minecraft_player("notch").await;
dbg!(result);

Sync

let api = playerdb_rs::sync::PlayerDBApi::default();
let result = api.get_minecraft_player("notch");
dbg!(result);