Skip to content

Commit 014b41a

Browse files
committed
remove(async): move client to stac-api
1 parent f7f552b commit 014b41a

24 files changed

+119
-397
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ updates:
2020
directory: "/stac-api"
2121
schedule:
2222
interval: "weekly"
23-
- package-ecosystem: "cargo"
24-
directory: "/stac-async"
25-
schedule:
26-
interval: "weekly"
2723
- package-ecosystem: "cargo"
2824
directory: "/stac-cli"
2925
schedule:

.github/workflows/api.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
- name: Check
3535
run: cargo check
3636
- name: Check w/ geo
37-
run: cargo check
37+
run: cargo check -F geo
38+
- name: Check w/ client
39+
run: cargo check -F client
3840
- name: Test
3941
run: cargo test --all-features

.github/workflows/async.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
resolver = "2"
33
members = [
44
"api",
5-
"async",
65
"cli",
76
"core",
87
"duckdb",
@@ -11,4 +10,4 @@ members = [
1110
"server",
1211
"validate",
1312
]
14-
default-members = ["api", "async", "cli", "core", "server", "validate"]
13+
default-members = ["api", "cli", "core", "server", "validate"]

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Command Line Interface (CLI), Rust crates, and other libraries for the [SpatioTe
1010

1111
- [stac-cli](./cli/README.md) is a command-line interface to query a STAC API, create and validate STAC items, and do other awesome stuff on the command line.
1212
- [stac](./core/README.md) is the core library with data structures (`Item`, `Catalog`, and `Collection`) and more.
13-
- [stac-async](./async/README.md) uses async Rust via [tokio](https://tokio.rs/) for input and output.
13+
- [stac-api](./api/README.md) contains the data structures for the [STAC API specification](https://github.com/radiantearth/stac-api-spec) and a client for interacting with one.
1414
- [stac-server](./server/README.md) is a STAC API server with multiple backends.
1515
- [stacrs](./python/README.md) is a small, no-dependency Python library based on **stac-rs**.
1616

@@ -22,7 +22,6 @@ This monorepo contains several crates:
2222
| ----- | ---- | --------- |
2323
| [stac](./core/README.md) | Core data structures and synchronous I/O | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/stac-utils/stac-rs/core.yml?style=flat-square)](https://github.com/stac-utils/stac-rs/actions/workflows/core.yml) <br /> [![docs.rs](https://img.shields.io/docsrs/stac?style=flat-square)](https://docs.rs/stac/latest/stac/) <br> [![Crates.io](https://img.shields.io/crates/v/stac?style=flat-square)](https://crates.io/crates/stac) |
2424
| [stac-api](./api/README.md) | Data structures for the [STAC API](https://github.com/radiantearth/stac-api-spec) specification | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/stac-utils/stac-rs/api.yml?style=flat-square)](https://github.com/stac-utils/stac-rs/actions/workflows/api.yml) <br /> [![docs.rs](https://img.shields.io/docsrs/stac-api?style=flat-square)](https://docs.rs/stac-api/latest/stac_api/) <br> [![Crates.io](https://img.shields.io/crates/v/stac-api?style=flat-square)](https://crates.io/crates/stac-api) |
25-
| [stac-async](./async/README.md) | Asynchronous I/O with [tokio](https://tokio.rs/) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/stac-utils/stac-rs/async.yml?style=flat-square)](https://github.com/stac-utils/stac-rs/actions/workflows/async.yml) <br /> [![docs.rs](https://img.shields.io/docsrs/stac-async?style=flat-square)](https://docs.rs/stac-async/latest/stac_async/) <br> [![Crates.io](https://img.shields.io/crates/v/stac-async?style=flat-square)](https://crates.io/crates/stac-async) |
2625
| [stac-cli](./cli/README.md)| Command line interface | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/stac-utils/stac-rs/cli.yml?style=flat-square)](https://github.com/stac-utils/stac-rs/actions/workflows/cli.yml) <br /> [![docs.rs](https://img.shields.io/docsrs/stac-cli?style=flat-square)](https://docs.rs/stac-cli/latest/stac_cli/) <br> [![Crates.io](https://img.shields.io/crates/v/stac-cli?style=flat-square)](https://crates.io/crates/stac-cli) |
2726
| [stac-server](./server/README.md)| STAC API server with multiple backends | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/stac-utils/stac-rs/server.yml?style=flat-square)](https://github.com/stac-utils/stac-rs/actions/workflows/server.yml) <br /> [![docs.rs](https://img.shields.io/docsrs/stac-server?style=flat-square)](https://docs.rs/stac-server/latest/stac_server/) <br> [![Crates.io](https://img.shields.io/crates/v/stac-server?style=flat-square)](https://crates.io/crates/stac-server) |
2827
| [stac-validate](./validate/README.md) | Validate STAC data structures with [jsonschema](https://json-schema.org/) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/stac-utils/stac-rs/validate.yml?style=flat-square)](https://github.com/stac-utils/stac-rs/actions/workflows/validate.yml) <br /> [![docs.rs](https://img.shields.io/docsrs/stac-validate?style=flat-square)](https://docs.rs/stac-validate/latest/stac-validate/) <br> [![Crates.io](https://img.shields.io/crates/v/stac-validate?style=flat-square)](https://crates.io/crates/stac-validate) |

api/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- `Client` (from now-defunkt **stac-async**) ([#372](https://github.com/stac-utils/stac-rs/pull/372))
12+
913
## [0.5.0] - 2024-09-05
1014

1115
### Added

api/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,33 @@ keywords = ["geospatial", "stac", "metadata", "geo", "raster"]
1111
categories = ["science", "data-structures", "web-programming"]
1212

1313
[features]
14+
client = [
15+
"dep:async-stream",
16+
"dep:futures",
17+
"dep:http",
18+
"dep:reqwest",
19+
"dep:tokio",
20+
]
1421
geo = ["dep:geo", "stac/geo"]
1522

1623
[dependencies]
24+
async-stream = { version = "0.3", optional = true }
1725
chrono = "0.4"
26+
futures = { version = "0.3", optional = true }
27+
http = { version = "1", optional = true }
28+
reqwest = { version = "0.12", features = ["json"], optional = true }
1829
geo = { version = "0.28", optional = true }
1930
geojson = "0.24"
2031
serde = "1"
2132
serde_json = "1"
2233
serde_urlencoded = "0.7"
2334
stac = { version = "0.9.0", path = "../core" }
2435
thiserror = "1"
36+
tokio = { version = "1.23", optional = true }
2537
url = "2.3"
2638

2739
[dev-dependencies]
2840
geojson = "0.24"
41+
mockito = "1"
42+
tokio = { version = "1.23", features = ["rt", "macros"] }
43+
tokio-test = "0.4"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)