Overview of the pgstac Rust client and CLI
mainThe src/pgstac-rs crate provides a high-performance Rust implementation for interacting with a PgSTAC database. It includes:
- A Read Engine: Handles
search_planandcollection_search_plan, performing band stepping, hydration (converting EWKB to GeoJSON and merging fragments), keyset token minting, and STACfieldsprojection in Rust. This moves CPU-intensive tasks off the database. - A Connection Pool: The
PgstacPool(available via thepoolfeature) provides an async read API. - Dump/Export Capabilities: A library and CLI tool (
pgstac) for exporting data (available viaexportorclifeatures). - Python Bindings: A Python wheel (
pgstac) built withmaturin(available via thepythonfeature).