#async-api #wrap #interact #market #worldstate

warframe

An async crate to wrap Warframe's Worldstate API

13 stable releases (4 major)

6.2.0 Oct 28, 2024
6.0.1 Aug 27, 2024
6.0.0 Jul 19, 2024
5.1.0 Jul 11, 2024
1.0.4 Nov 16, 2023

#832 in Parser implementations

MIT license

150KB
4K 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.

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

~8–43MB
~574K SLoC