Skip to content

Commit 8f1a6a7

Browse files
committed
Revert "feat: add a basic tree structure (#504)"
This reverts commit 8d70a20.
1 parent 8d70a20 commit 8f1a6a7

File tree

10 files changed

+29
-312
lines changed

10 files changed

+29
-312
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@v4
2929
- uses: Swatinem/rust-cache@v2
3030
- name: Test
31-
run: cargo test -p stac stac-types --all-features
31+
run: cargo test -p stac --all-features
3232
check-features-core:
3333
name: Check stac features
3434
runs-on: ubuntu-latest

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ object_store = "0.11.0"
6262
openssl = { version = "0.10.68", features = ["vendored"] }
6363
openssl-src = "=300.3.1" # joinked from https://github.com/iopsystems/rpc-perf/commit/705b290d2105af6f33150da04b217422c6d68701#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542R41 to cross-compile Python
6464
parquet = { version = "52.2", default-features = false }
65-
path-slash = "0.2.1"
6665
pgstac = { version = "0.2.1", path = "crates/pgstac" }
6766
pyo3 = "0.22.3"
6867
pythonize = "0.22.0"

crates/cli/src/subcommand/serve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Run for Args {
9393
}
9494
Value::Collection(mut collection) => {
9595
if self.load_collection_items {
96-
collection.make_links_absolute()?;
96+
collection.make_relative_links_absolute()?;
9797
for link in collection.iter_item_links() {
9898
let href = link.href.to_string();
9999
let input = input.with_href(href);

crates/core/CHANGELOG.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
99
### Added
1010

1111
- `version` ([#476](https://github.com/stac-utils/stac-rs/pull/476))
12-
- `Node` and friends ([#504](https://github.com/stac-utils/stac-rs/pull/504))
13-
14-
### Changed
15-
16-
- `make_links_absolute` instead of `make_relative_links_absolute`, `make_links_relative` instead of `make_absolute_links_relative` ([#504](https://github.com/stac-utils/stac-rs/pull/504))
1712
- Permissive deserialization ([#505](https://github.com/stac-utils/stac-rs/pull/505))
1813

1914
### Removed

crates/core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jsonschema = { workspace = true, optional = true }
6363
log.workspace = true
6464
object_store = { workspace = true, optional = true }
6565
parquet = { workspace = true, optional = true }
66-
path-slash.workspace = true
6766
reqwest = { workspace = true, features = ["json", "blocking"], optional = true }
6867
serde = { workspace = true, features = ["derive"] }
6968
serde_json = { workspace = true, features = ["preserve_order"] }

crates/core/src/item.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
use crate::{Asset, Assets, Bbox, Error, Fields, Link, Result, Version, STAC_VERSION};
44
use chrono::{DateTime, FixedOffset, Utc};
55
use geojson::{feature::Id, Feature, Geometry};
6-
use path_slash::PathBufExt;
76
use serde::{Deserialize, Serialize};
87
use serde_json::{Map, Value};
98
use stac_derive::{Href, Links, Migrate};
10-
use std::{collections::HashMap, path::PathBuf};
9+
use std::{collections::HashMap, path::Path};
1110
use url::Url;
1211

1312
const TOP_LEVEL_ATTRIBUTES: [&str; 8] = [
@@ -286,7 +285,7 @@ impl Builder {
286285
let mut item = Item::new(self.id);
287286
for (key, mut asset) in self.assets {
288287
if Url::parse(&asset.href).is_err() && self.canonicalize_paths {
289-
asset.href = PathBuf::from_slash(&asset.href)
288+
asset.href = Path::new(&asset.href)
290289
.canonicalize()?
291290
.to_string_lossy()
292291
.into_owned();

crates/core/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ mod item_asset;
168168
mod item_collection;
169169
mod json;
170170
mod ndjson;
171-
mod node;
172171
mod statistics;
173172
#[cfg(feature = "validate")]
174173
mod validate;
@@ -197,7 +196,6 @@ pub use {
197196
item_collection::ItemCollection,
198197
json::{FromJson, ToJson},
199198
ndjson::{FromNdjson, ToNdjson},
200-
node::Node,
201199
statistics::Statistics,
202200
value::Value,
203201
};

crates/core/src/node.rs

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

crates/types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ rust-version.workspace = true
1111

1212
[dependencies]
1313
mime.workspace = true
14-
path-slash.workspace = true
1514
serde = { workspace = true, features = ["derive"] }
1615
serde_json.workspace = true
1716
thiserror.workspace = true

0 commit comments

Comments
 (0)