#api #async #wrap #tokio #worldstate

warframe

An async crate to wrap Warframe's Worldstate API

10 stable releases (4 major)

new 6.0.0 Jul 19, 2024
5.1.0 Jul 11, 2024
5.0.1 Jun 23, 2024
4.1.0 Jun 9, 2024
1.0.4 Nov 16, 2023

#12 in #wrap

Download history 44/week @ 2024-04-01 180/week @ 2024-04-22 109/week @ 2024-06-03 214/week @ 2024-06-10 132/week @ 2024-06-17 44/week @ 2024-06-24 26/week @ 2024-07-01 107/week @ 2024-07-08 106/week @ 2024-07-15

411 downloads per month

MIT license

97KB
2.5K SLoC

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.

Please Note that a few things are subject to change without bumps in majors. Obsolete versions will be yanked asap.

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

Contributions are more than welcome. To contribute simply fork this repository and make a PR.

We use clippy for linting, and rustfmt for formatting. They are included as dev-dependencies in the Cargo.toml.

Commitlint

Commit messages are linting in the PR

Dependencies

~7–19MB
~281K SLoC