| Crates.io | rustac |
| lib.rs | rustac |
| version | 0.1.0 |
| created_at | 2025-07-11 21:27:52.238807+00 |
| updated_at | 2025-07-11 21:27:52.238807+00 |
| description | Command line interface for rustac |
| homepage | https://stac-utils.github.io/rustac |
| repository | https://github.com/stac-utils/rustac |
| max_upload_size | |
| id | 1748462 |
| size | 223,655 |
Command Line Interface (CLI) for STAC, named rustac.
cargo install rustac -F duckdb # to use libduckdb on your system
# or
cargo install rustac -F duckdb-bundled # to build libduckdb on install (slow)
Then:
# Search
$ rustac search https://landsatlook.usgs.gov/stac-server \
--collections landsat-c2l2-sr \
--intersects '{"type": "Point", "coordinates": [-105.119, 40.173]}' \
--sortby='-properties.datetime' \
--max-items 1000 \
items.parquet
# Translate formats
$ rustac translate items.parquet items.ndjson
$ rustac translate items.ndjson items.json
# Migrate STAC versions
$ rustac translate item-v1.0.json item-v1.1.json --migrate
# Search stac-geoparquet (no API server required)
$ stac search items.parquet
# Server
$ rustac serve items.parquet # Opens a STAC API server on http://localhost:7822
# Validate
$ rustac validate item.json
rustac provides the following subcommands:
rustac search: searches STAC APIs and, if the duckdb feature is enabled, geoparquet filesrustac serve: serves a STAC APIrustac translate: converts STAC from one format to anotherrustac validate: validates a STAC valueUse the --help flag to see all available options for the CLI and the subcommands:
This crate has three features:
pgstac: enable a pgstac backend for rustac serveduckdb: build with DuckDB support, which enables searching stac-geoparquet (requires DuckDB to be present on your system)duckdb-bundled: bundle DuckDB by building it from source, instead of using a local installation (does not require DuckDB to be present on your system)[!TIP] If you're using the
duckdbfeature, setDUCKDB_LIB_DIRto the directory containing your libduckdb. If you're on macos and using Homebrew, this might beexport DUCKDB_LIB_DIR=/opt/homebrew/lib
This crate is part of the rustac monorepo, see its README for contributing and license information.