ferric-fred 0.1.0

A strongly-typed async Rust client for the FRED (Federal Reserve Economic Data) API.
Documentation

ferric-fred — a strongly-typed async Rust client for the FRED API (Federal Reserve Economic Data, from the Federal Reserve Bank of St. Louis).

This crate is in early construction. The first implemented slice fetches a series' observations end-to-end; see the design ADRs under docs/adr/ for the decisions that shape the API (async-first client, typed error taxonomy, newtype identifiers, and forward-compatible domain modelling).

# async fn run() -> ferric_fred::Result<()> {
use ferric_fred::{Client, SeriesId};

let client = Client::from_env()?; // reads FRED_API_KEY
let observations = client.observations(&SeriesId::new("GNPCA")).send().await?;
println!("{} observations", observations.len());
# Ok(())
# }