eargast-rs

Crates.ioeargast-rs
lib.rseargast-rs
version0.1.0
sourcesrc
created_at2022-06-25 22:21:44.272933
updated_at2022-06-25 22:29:27.602497
descriptionAn async client for getting Formula 1 schedules, qualifying, and race results powered by the Eargast API
homepage
repository
max_upload_size
id613309
size14,532
Pato Lankenau (pato)

documentation

README

Eargast-rs: your one stop shop for Formula 1 (F1) results and schedules

This project introduces an Eargast struct which can be used to query the Eargast API.

It currently supports getting:

  • race schedules
  • qualifying results
  • race results

All three can be queried for either the current season or any past season.

Example usage

Get the last race's results

let client = Eargast::new()?;
let race_results = client
    .race_results(None, None)
    .await?;

Get the race schedule for 2020

let client = Eargast::new()?;
let races = client
    .race_schedule(Some("2020"))
    .await?;

Get the qualifying results of the season opener in 2019

let client = Eargast::new()?;
let races = client
    .qualifying_results(Some(1), Some("2019"))
    .await?;
Commit count: 0

cargo fmt