#stac #geospatial #metadata #api #assets #api-server #geo

stac-api

Rust library for the SpatioTemporal Asset Catalog (STAC) API specification

12 unstable releases (5 breaking)

0.6.2 Nov 12, 2024
0.6.0 Sep 19, 2024
0.4.0 Apr 29, 2024
0.3.2 Oct 11, 2023
0.1.0 Jan 14, 2023

#1257 in Web programming

Download history 26/week @ 2024-08-19 20/week @ 2024-08-26 174/week @ 2024-09-02 39/week @ 2024-09-09 208/week @ 2024-09-16 51/week @ 2024-09-23 87/week @ 2024-09-30 89/week @ 2024-10-07 4/week @ 2024-10-14 170/week @ 2024-10-21 22/week @ 2024-10-28 39/week @ 2024-11-04 127/week @ 2024-11-11 213/week @ 2024-11-18 105/week @ 2024-11-25 50/week @ 2024-12-02

495 downloads per month
Used in 5 crates

MIT/Apache

1.5MB
7K SLoC

stac-api

GitHub Workflow Status docs.rs Crates.io Crates.io Contributor Covenant

Rust implementation of the data structures that make up the STAC API specification. This is not a server implementation. For a STAC API server written in Rust, check out our stac-server.

Usage

To use the library in your project:

[dependencies]
stac-api = "0.6"

stac-api has one optional feature. geo enables Search::match:

[dependencies]
stac-api = { version = "0.6", features = ["geo"] }

Examples

use stac_api::{Root, Conformance, CORE_URI};
use stac::Catalog;

// Build the root (landing page) endpoint.
let root = Root {
    catalog: Catalog::new("an-id", "a description"),
    conformance: Conformance {
        conforms_to: vec![CORE_URI.to_string()],
    }
};

Please see the documentation for more usage examples.

Other info

This crate is part of the stac-rs monorepo, see its README for contributing and license information.

Dependencies

~13–27MB
~413K SLoC