5 releases (3 stable)
3.1.1 | Feb 10, 2024 |
---|---|
3.0.0 | Feb 7, 2024 |
0.2.0 | Feb 10, 2024 |
0.1.0 | Feb 5, 2024 |
#6 in #warframe
25 downloads per month
7KB
134 lines
warframe.rs
An async crate to wrap the Worldstate API.
Use this crate if you want to make a Warframe-related rust project that is async.
Getting started
To install, simply run cargo add warframe
.
Example
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),
}
}
Contributing
See CONTRIBUTING
Commitlint
Commit messages are linting in the PR
Dependencies
~0.6–1MB
~24K SLoC