#warframe #async #ml #result

warframe

An async crate to wrap Warframe's Worldstate API

4 stable releases

3.1.1 Feb 10, 2024
3.0.0 Feb 7, 2024
1.1.3 Jan 28, 2024
1.0.4 Nov 16, 2023

#218 in Date and time

Download history 35/week @ 2023-11-11 10/week @ 2023-11-18 8/week @ 2023-11-25 8/week @ 2023-12-02 2/week @ 2023-12-09 4/week @ 2023-12-23 4/week @ 2024-01-06 4/week @ 2024-01-13 50/week @ 2024-01-20 95/week @ 2024-01-27 32/week @ 2024-02-03 91/week @ 2024-02-10

268 downloads per month

MIT license

62KB
2K 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.

Dependencies

~8–24MB
~376K SLoC