playerdb client with support for async/sync.
Go to file
Wynd ab1ce1cd4a Moved reqwest's blocking feature to the lib's sync feature 2024-04-21 23:06:08 +03:00
examples Removed the anyhow crate and added the error mod instead 2024-04-21 23:03:39 +03:00
src Removed the anyhow crate and added the error mod instead 2024-04-21 23:03:39 +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 Moved reqwest's blocking feature to the lib's sync feature 2024-04-21 23:06:08 +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);