Crates.io | warframe |
lib.rs | warframe |
version | 6.2.0 |
source | src |
created_at | 2023-11-16 22:34:56.07506 |
updated_at | 2024-10-28 20:15:40.442239 |
description | An async crate to wrap Warframe's Worldstate API. |
homepage | https://docs.rs/warframe |
repository | https://github.com/Mettwasser/warframe.rs |
max_upload_size | |
id | 1038226 |
size | 167,091 |
An async crate to wrap the Worldstate API.
Use this crate if you want to make a Warframe-related rust project that is async.
To install, simply run cargo add warframe
.
use warframe::worldstate::prelude::*;
#[tokio::main]
async fn main() -> Result<(), ApiError> {
let client = Client::new();
match client.fetch::<Cetus>().await {
Ok(cetus) => {
println!(
"It is currently {} on cetus. It will be {} in {}",
cetus.state,
cetus.state.opposite(),
cetus.eta()
);
Ok(())
}
Err(why) => Err(why),
}
}
See CONTRIBUTING
Commit messages are linting in the PR