Skip to content

WFCD/warframe.rs

warframe.rs

An async crate to wrap the Worldstate API and the warframe.market 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.

Note that the MSRV of this project is 1.91.

Example

use warframe::worldstate::{Client, Error, queryable::Cetus, Opposite, TimedEvent};

#[tokio::main]
async fn main() -> Result<(), Error> {
    let client = Client::default();

    let cetus = client.fetch::<Cetus>().await?;
    println!(
        "It is currently {} on cetus. It will be {} in {}",
        cetus.state,
        cetus.state.opposite(),
        cetus.eta()
    );

    Ok(())
}

Contributing

See CONTRIBUTING

Commitlint

Commit messages are linting in the PR

About

An async crate to interact with the warframestat.us and the warframe.market API.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors