data_gov_ckan/lib.rs
1//! Async CKAN client for open-data portals.
2//!
3//! This crate exposes typed bindings for the read-only portions of the CKAN
4//! Action API. [`CkanClient`] accepts a shared [`Configuration`] and exposes
5//! async methods for search, dataset metadata, organizations, and autocomplete
6//! endpoints. Data models are re-exported under [`models`].
7//!
8//! # Status
9//!
10//! **data.gov no longer exposes a CKAN API.** As of 2026, the data.gov catalog
11//! is served by a purpose-built search API (see the `data-gov-catalog` crate).
12//! This crate remains published because CKAN is still the backbone of many
13//! other open-data portals (European, state, municipal, and university
14//! instances), and the client works unchanged against any compliant CKAN
15//! deployment. Point [`Configuration::base_path`] at your target instance.
16
17#![allow(clippy::too_many_arguments)]
18
19pub mod client;
20pub mod models;
21
22// Re-export the ergonomic client and configuration for easy access
23pub use client::{ApiKey, BasicAuth, CkanClient, CkanError, Configuration};