#json-response #formula #api-wrapper #data #fetch #f1 #ergast

ergast_rust

Collection of utilities to fetch data from amazing F1 dataset, the Ergast API

1 unstable release

0.1.0 Dec 25, 2023

#6 in #f1

MIT license

21KB
547 lines

Introduction

This repository offers an ergonomic Rust wrapper designed to seamlessly fetch JSON responses from The Ergast API, a comprehensive source for Formula 1 data.

Basic Usage

// fetch results endpoint
let path = api::Path{year:2023, round:Some(1)};
let params = api::URLParams::default();
ergast::Ergast::results(path, params).await.unwrap();

lib.rs:

ergast_rust

ergast_rust is a collection of utilities to fetch data from amazing the Ergast API provides comprehensive Formula 1 dataset.

Dependencies

~6–18MB
~252K SLoC