Skip to content

Release 0.6.0 - #443

Merged
giswqs merged 9 commits into
mainfrom
release/0.6.0
Oct 31, 2026
Merged

giswqs merged 9 commits into
mainfrom
release/0.6.0

Conversation

@giswqs

@giswqs giswqs commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Bumps the workspace version to 0.6.0 and terrio-crs to 0.2.0 (Cargo.toml, Cargo.lock, crate manifest), points the install examples, the Pyodide wheel URL, docs/crs.md and CITATION.cff at the new versions, and turns the changelog's Unreleased section into 0.6.0.

Why terrio-crs moves too: the crate on crates.io is still 0.1.0 from 2026-10-25, while the workspace copy has gained APIs terrio uses (PROJJSON, IAU, geocentric). The release workflow skips a version already on crates.io, so without a bump cargo publish -p terrio would resolve against the old crate. The release dry run packages all three crates together and so does not catch this. 0.2.0 rather than 0.1.1 because the public API has breaking additions, such as a new public struct field, and the default features changed.

Validation: release dry run passed on 80804f7d, before this bump. A dry run on this branch is being run as well.

Limitations: the playground's terrio-js version is bumped in a follow-up once 0.6.0 is on npm, as was done for 0.5.0. CLI binaries and wheels are about 55% larger than 0.5.0.

Summary by CodeRabbit

  • New Features
    • The terrio-crs 0.2.0 release adds geocentric and IAU coordinate reference systems, PROJJSON support, and additional projections.
    • TransformOptions now includes a promote_to_3d option.
  • Changes
    • Zstandard TIFF grid support is off by default and requires the optional libzstd feature. Transformations may fall back to another operation when a required grid is unavailable; only_best makes this an error.
    • Default builds avoid a native C dependency on supported targets.
  • Documentation
    • Installation instructions and CRS documentation reflect the latest versions. Citation materials credit Mavrick Fitzgerald as a co-author.
  • Release
    • Project version updated to 0.6.0, dated October 31, 2026.

Citation: adds Mavrick Fitzgerald as an author in CITATION.cff, the README and the How to Cite page.

Bump the workspace to 0.6.0 and terrio-crs to 0.2.0, and point the
install examples and the Pyodide wheel URL at v0.6.0.

terrio-crs changed since its 0.1.0 publish, including new APIs terrio
uses. The release workflow skips a version already on crates.io, so
without a bump terrio would be published against the old crate.
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 7934bb3e-d34a-4f64-8176-f0767c12a438
Commits

Reviewing files that changed from the base of the PR and between ad207d2 and e8289cd.

Files selected for processing: 8
  • .github/workflows/ci-extended.yml
  • .github/workflows/ci.yml
  • .github/workflows/release-dry-run.yml
  • .github/workflows/release.yml
  • CHANGELOG.md
  • docs/javascript.md
  • js/README.md
  • js/build.mjs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Walkthrough

This change updates terrio to 0.6.0 and terrio-crs to 0.2.0. It updates release and citation metadata, documents the CRS crate’s default-off libzstd feature, revises memory64 build setup, and adds CI dependency checks.

Changes: Release and CRS Update

Layer / File(s) Summary
CRS release and feature contract
CHANGELOG.md, Cargo.toml, crates/terrio-crs/Cargo.toml, crates/terrio-crs/README.md, docs/crs-footprint.md, docs/crs.md, docs/installation.md
Release references advance to terrio 0.6.0 and terrio-crs 0.2.0. The changelog lists CRS capabilities and release changes, including TransformOptions::promote_to_3d. Documentation states that Zstandard TIFF-grid reading requires the optional libzstd feature and that table decompression uses ruzstd.
Dependency checks
.github/workflows/ci.yml
CI adds dependency checks for terrio-crs and terrio-js on Linux and WebAssembly targets. It also broadens the CLI dependency matching rules.
Memory64 build and workflow updates
js/build.mjs, js/README.md, docs/javascript.md, .github/workflows/ci-extended.yml, .github/workflows/release-dry-run.yml, .github/workflows/release.yml
The memory64 build removes the zstd-sys patches and clang version selection. The related workflows remove clang-20 installation steps. Build notes describe the remaining patches and getrandom backend.
Release and citation metadata
CITATION.cff, README.md, docs/citation.md
Citation records add Mavrick Fitzgerald and update the release version and date.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

Possibly related PRs

  • opengeos/terrio#297: This PR defines the libzstd feature and fallback contract, which this release documents as default-off.
  • opengeos/terrio#296: This PR adds TransformOptions::promote_to_3d, which the changelog lists among the terrio-crs 0.2.0 changes.
  • opengeos/terrio#229: This PR adds the memory64 build assumptions that this change revises.

Suggested labels: ci:all

Suggested reviewers: gpt-cmdr

Merge Risk: Minimal · up to e8289

The memory64 build does not activate the dependency requiring the removed shim. The release and build updates are mergeable subject to normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the primary change: releasing version 0.6.0. It is concise and directly related to the version updates and release metadata in the changeset.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files. (4 skipped: 4 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the version line,
Then marks the CRS release as fine.
The Zstd switch is off by default,
While build notes shed old compiler heft.
New citations join the release trail,
And carrots cheer the tidy changelog.

List them as an author in CITATION.cff, the README and the How to Cite
page, so the 0.6.0 archive carries the new author list.
Comment thread CHANGELOG.md Resolved
Comment thread crates/terrio-crs/Cargo.toml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Code review

Bugs

  • None found. I checked that the release workflow (.github/workflows/release.yml) reads each crate's own version from cargo metadata, so the terrio-crs 0.2.0 bump is handled correctly. Cargo.lock matches the manifests. The 0.6.0 version references in the install docs, CITATION.cff, Pyodide URL and README are consistent. The Python and JS packages inherit the workspace version. (High confidence)

Security

  • None found. The diff has no code paths or inputs. (High confidence)

Performance

  • None found. (High confidence)

Quality

  • The CHANGELOG's "breaking additions" wording is vague; name the break a user will hit, such as the new public struct field breaking struct-literal construction. (High confidence, nit; inline on CHANGELOG.md:8)
  • Mavrick Fitzgerald's authorship addition is bundled into a release PR. It changes the recorded authors in CITATION.cff, the README and docs/citation.md. Confirm the change is intended and that the author agreed. (Low confidence, process note; not inline)
  • docs/crs.md:61 and the install docs link to the 0.2.0 and 0.6.0 release URLs, which only exist after the tag is published. This is expected for a release PR, but make sure the docs are not deployed before the tag. (Low confidence, not verifiable from the diff)

CLAUDE.md (AGENTS.md)

  • Making libzstd a default feature of terrio-crs (crates/terrio-crs/Cargo.toml:26) makes standalone default builds link the zstd C library. AGENTS.md says "Keep the default implementation pure Rust". The change is noted in the CHANGELOG and PR body, but docs/crs.md's feature matrix (line 77, "Default … offline") does not mention the C dependency. (Medium confidence; inline on crates/terrio-crs/Cargo.toml:3, since line 26 is outside the diff hunk)

Checked and found no issue: the CHANGELOG Unreleased section moved correctly, no stale 0.5.0 or 0.1.0 references remain for the bumped crates (the remaining ones are historical benchmark records, the NOTICE's SOZip spec version, and ROADMAP history), and docs/installation.md's "each release after 0.5.0" is still accurate because 0.6.0 is the first Docker release.

Change size

Compared with the base branch: the whole PR against main (merge base 80804f7 to PR head 2d00dd7).

Measure Value
Files changed 9 (0 added, 9 modified, 0 removed, 0 renamed)
Size before 201.3 KB
Size after 201.7 KB
Total size change +370 B
Path Before After Change
CHANGELOG.md 24.1 KB 24.3 KB +238 B
docs/citation.md 2.0 KB 2.1 KB +60 B
CITATION.cff 996 B 1.0 KB +54 B
README.md 24.2 KB 24.2 KB +18 B
Cargo.lock 88.6 KB 88.6 KB 0 B
Cargo.toml 7.7 KB 7.7 KB 0 B
crates/terrio-crs/Cargo.toml 1.2 KB 1.2 KB 0 B
docs/crs.md 47.1 KB 47.1 KB 0 B
docs/installation.md 5.5 KB 5.5 KB 0 B

terrio-crs's default features linked the zstd C library through
tiff/zstd, on WebAssembly as well as native targets. Make `libzstd` off
by default, so the crate's default build has no C dependency, and check
that in CI on both targets. Zstandard TIFF grids now need the feature;
PROJ's grids are DEFLATE-compressed.
Comment thread .github/workflows/ci.yml Resolved
Comment thread CHANGELOG.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Code review

Bugs

  • None found. Checked the version bumps across Cargo.toml, Cargo.lock, and the crate manifest, plus terrio-crs's default features and their use by terrio (default-features = false). The release.yml publish order (terrio-crs, then terrio, then terrio-cli) is correct. The promote_to_3d field exists and TransformOptions derives Default. Python and JS versions come from the workspace, so nothing was missed there. Could not run cargo (no shell), so the --locked publish and the CI step are verified by reading only.

Security

  • None found. The only CI change is a read-only cargo tree check.

Performance

  • None found.

Quality

  • CI C-dependency check is narrower than its name (.github/workflows/ci.yml:254, confidence: medium). The denylist matches only cc|cmake|bindgen|zstd-sys, so libz-sys, lzma-sys, bzip2-sys and openssl-sys would pass. The check passes today. Suggested a -sys suffix match, with a caveat about pure-Rust *-sys crates.
  • Changelog does not flag the default-feature change as breaking (CHANGELOG.md:10-12, confidence: medium-high). Users of the default standalone build who read Zstandard TIFF grids silently lose them. The bullet should say so and tell them to enable libzstd. Suggested wording is in the inline comment.

CLAUDE.md (AGENTS.md)

  • Nothing violated. The change keeps the default build pure Rust, as AGENTS.md requires. The version bump follows the repo's versioning rule, and the 0.2.0 choice is justified in the PR body. ROADMAP.md is not updated, but no roadmap item is completed by this release.

Change size

Compared with the base branch: the whole PR against main (merge base 80804f7 to PR head 393c7bc).

Measure Value
Files changed 12 (0 added, 12 modified, 0 removed, 0 renamed)
Size before 227.1 KB
Size after 228.1 KB
Total size change +1.0 KB
Path Before After Change
CHANGELOG.md 24.1 KB 24.6 KB +493 B
.github/workflows/ci.yml 15.6 KB 16.1 KB +470 B
crates/terrio-crs/README.md 3.0 KB 2.9 KB -121 B
docs/citation.md 2.0 KB 2.1 KB +60 B
CITATION.cff 996 B 1050 B +54 B
crates/terrio-crs/Cargo.toml 1.2 KB 1.2 KB +44 B
README.md 24.2 KB 24.2 KB +18 B
docs/crs.md 47.1 KB 47.1 KB +7 B
Cargo.lock 88.6 KB 88.6 KB 0 B
Cargo.toml 7.7 KB 7.7 KB 0 B
docs/crs-footprint.md 7.2 KB 7.2 KB 0 B
docs/installation.md 5.5 KB 5.5 KB 0 B

Comment thread .github/workflows/ci.yml Resolved
Comment thread CHANGELOG.md Resolved
[features]
default = ["libzstd"]
# Zstandard TIFF grids, with the zstd C library. PROJ's grids are DEFLATE-compressed.
default = []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug (medium confidence, not verified by running the code): a Zstandard grid without libzstd may fail with an unhelpful error. Grid decoding goes through the tiff crate (grid.rs), and I found no mapping that names this feature. The README says wbprojection-fallback returns an error naming its feature, and this should do the same, for example "Zstandard TIFF grid X needs the libzstd feature". That matters most for 0.1.0 users upgrading to 0.2.0 who relied on the old default.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed: read_tiff and block reads return Option, so any unreadable grid, not just a Zstandard one, is treated as unavailable, without an error naming the cause. Naming it means changing that error path, which is out of scope for a release PR. The changelog and README document the requirement. Left open as a follow-up.

Comment thread CITATION.cff Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Code review

Bugs

  • CI no-C guard matches only four crate names (.github/workflows/ci.yml:254). libz-sys, openssl-sys, aws-lc-sys and similar would pass. The inline suggestion widens the pattern to any -sys crate, excluding js-sys/web-sys. Confidence: medium.
  • A Zstandard grid without libzstd may fail with an error that doesn't name the feature (crates/terrio-crs/Cargo.toml:26). I did not find a mapping in grid.rs that names it. I did not run the code, so this is unverified. Confidence: medium.

Security

  • No issues found. The diff changes only versions, docs, citation metadata and one CI check.

Performance

  • No issues found.

Quality

  • The default-feature change is not called out as a behavior change (CHANGELOG.md:10). Before this PR, terrio-crs 0.1.0 read Zstandard TIFF grids by default; 0.2.0 does not. The inline suggestion adds that. Confidence: high.
  • Co-author added to the citation of record (CITATION.cff:12). Confirm Mavrick Fitzgerald agreed; the entry also lacks affiliation and ORCID. Confidence: low (nit).
  • Deferred, not a defect: docs/javascripts/playground.js:6 still has VERSION = "0.5.0". The PR body says this is bumped after 0.6.0 is on npm. Confidence: high that it is intentional.
  • Release ordering: docs/installation.md links to v0.6.0 release assets, including the Pyodide wheel name. Those must exist before the docs are published. I could not check this from disk. Confidence: n/a.

CLAUDE.md / AGENTS.md

  • Version bumps are consistent across Cargo.toml, Cargo.lock and crates/terrio-crs/Cargo.toml.
  • The promote_to_3d field named in the changelog exists in crates/terrio-crs/src.
  • The workspace terrio-crs dependency keeps default-features = false, so Terrio's own behavior is unchanged by the feature default change.
  • Build and validation details are in the PR body and were not re-run here.

Change size

Compared with main (merge base d987600 to PR head ad207d2): the whole PR, not the latest push.

Measure Value
Files changed 12 (0 added, 12 modified, 0 removed, 0 renamed)
Size before 229.1 KB
Size after 230.1 KB
Total size change +1.0 KB
Path Before After Change
CHANGELOG.md 24.9 KB 25.3 KB +493 B
.github/workflows/ci.yml 16.1 KB 16.5 KB +470 B
crates/terrio-crs/README.md 3.0 KB 2.9 KB −121 B
docs/citation.md 2.0 KB 2.1 KB +60 B
CITATION.cff 997 B 1.0 KB +54 B
crates/terrio-crs/Cargo.toml 1.2 KB 1.2 KB +44 B
README.md 24.2 KB 24.2 KB +18 B
docs/crs.md 47.1 KB 47.1 KB +7 B
Cargo.lock 89.0 KB 89.0 KB 0 B
Cargo.toml 8.1 KB 8.1 KB 0 B
docs/crs-footprint.md 7.2 KB 7.2 KB 0 B
docs/installation.md 5.5 KB 5.5 KB 0 B

- Say in the changelog that Zstandard TIFF grids now need libzstd in
  terrio-crs, and that without it such a grid is treated as unavailable.
- Catch any C-linked -sys crate in the terrio-crs dependency check.
Comment thread .github/workflows/ci.yml Resolved
[features]
default = ["libzstd"]
# Zstandard TIFF grids, with the zstd C library. PROJ's grids are DEFLATE-compressed.
default = []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test coverage (confidence: medium): flipping the default is a behavior change: a Zstandard TIFF grid is now unreadable by default. The block decoder returns None on failure (grid.rs:236), so the grid is treated as unavailable, as the CHANGELOG says. Nothing in crates/terrio-crs/tests covers this, with the feature off or on. AGENTS.md asks for a regression test with a behavior change, so a small test with a Zstd-compressed grid fixture would pin the documented behavior.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left for a follow-up alongside the grid error thread: pinning this needs a Zstandard grid fixture, and the error path should be settled first. It is not a release blocker.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

Bugs

  • The new "no C dependency" CI step can pass when cargo tree fails. crates=$(cargo tree … | cut …) returns cut's exit status, and the step has no pipefail. Inline suggestion posted on .github/workflows/ci.yml:252. Confidence: high.
  • No other correctness problems found. I checked that promote_to_3d exists, that terrio does not enable terrio-crs/libzstd, that Cargo.lock matches the new defaults, and that a Zstd block decode failure returns None as the changelog describes.

Security

  • None found. The diff contains only version strings, documentation, citation metadata and a CI check.

Performance

  • None found.

Quality

  • Flipping terrio-crs to default = [] changes which grids are read, but no test covers Zstd grids with the feature off. Inline comment posted on crates/terrio-crs/Cargo.toml:26. Confidence: medium.
  • Adding Mavrick Fitzgerald as an author across CITATION.cff, the README and docs/citation.md is consistent in all three places. Confirm that the co-author has agreed to it, since it feeds the Zenodo record. Confidence: low, since this is a judgment call the PR cannot settle.
  • docs/crs.md links to crates.io/crates/terrio-crs/0.2.0, which will 404 until the crate is published. Merge after publishing, or accept the broken link until then. Confidence: high that the link is premature, low that it matters.
  • docs/javascripts/playground.js still has VERSION = "0.5.0". The PR body says this is deliberate and deferred until terrio-js is on npm.

CLAUDE.md

  • AGENTS.md asks for a regression test with a behavior change, which the terrio-crs default flip lacks (see Quality above).
  • The CI check is not run here, because I have no shell. Its pass or fail depends on the resolved dependency graph, so it needs a real run before merge.

Change size

Compared with main (merge base d987600 to PR head 322824a).

Measure Value
Files changed 12 (0 added, 12 modified, 0 removed, 0 renamed)
Size before 229.2 KB
Size after 230.4 KB
Total size change +1.2 KB
Path Before After Change
.github/workflows/ci.yml 16.1 KB 16.7 KB +605 B
CHANGELOG.md 24.9 KB 25.4 KB +580 B
crates/terrio-crs/README.md 3.0 KB 2.9 KB -121 B
docs/citation.md 2.0 KB 2.1 KB +60 B
CITATION.cff 972 B 1.0 KB +54 B
crates/terrio-crs/Cargo.toml 1.2 KB 1.2 KB +44 B
README.md 24.2 KB 24.2 KB +18 B
docs/crs.md 47.1 KB 47.1 KB +7 B
Cargo.lock 89.0 KB 89.0 KB 0 B
Cargo.toml 8.1 KB 8.1 KB 0 B
docs/crs-footprint.md 7.2 KB 7.2 KB 0 B
docs/installation.md 5.5 KB 5.5 KB 0 B

The memory64 build patched zstd-sys and required clang 20 for Zstandard's
C sources. Neither is in the build now, and the patch step failed the
release dry run because zstd-sys is gone.

Also make the C dependency checks in CI fail when cargo tree fails.
Comment thread js/build.mjs Resolved
Comment thread CHANGELOG.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Code review

Reviewed the full 18-file diff (version bump to 0.6.0 / terrio-crs 0.2.0, CI and release workflow changes, js/build.mjs memory64 changes, docs, citation). Two inline comments are posted. Neither the lock nor the tooling available here could confirm the wasm64 claim, so it is flagged as unverified.

Bugs

  • Medium (~50%): js/build.mjs:166. The removal of the clang-20 guard and the zstd-sys patch assumes zstd-sys is absent from the terrio-js memory64 graph. js/Cargo.toml (geotiff plus full, no libzstd) suggests it is, but Cargo.lock still lists zstd 0.13.3 under tiff, and no CI check covers the wasm64 graph. If the assumption is wrong, the build compiles C with whatever clang the runner has, which is the failure the removed comment warned about. Suggested an assertion in the build.
  • Medium (~55%): CHANGELOG.md:13. With libzstd off by default, a Zstandard grid is treated as unavailable, and with allow_ballpark defaulting to yes, a transform can silently fall back to an approximate operation. The entry does not say so. Suggested wording that points users at ALLOW_BALLPARK=NO / ONLY_BEST / diagnostics.

Security

  • None found. The diff changes no runtime input handling. The new CI shell step interpolates only fixed target names.

Performance

  • None found.

Quality

  • Nit: js/build.mjs:101. The reflowed doc comment has one line of about 170 characters, and the target_family = / "wasm" break is awkward. Reflow the paragraph.
  • Low: the C-dependency check in ci.yml (around line 256) relies on a hand-maintained -sys exclusion list. It is correct for the current graph, but a new pure-Rust *-sys crate would fail the check and need the list updated.
  • Low: the Mavrick Fitzgerald entry in CITATION.cff has no affiliation or ORCID, unlike the first author. Fine if intentional. Adding a co-author to citation metadata is an authorship decision, so maintainers should confirm it.

CLAUDE.md

  • No violations found against AGENTS.md. No Rust source changed, so fmt and clippy are not implicated. ROADMAP.md:608 still references terrio-crs 0.1.0 as the release record, which is acceptable history.

Checked and found correct: publish order in release.yml (terrio-crs before terrio and terrio-cli), the terrio-crs default = [] change against crates/terrio and js/Cargo.toml, the promote_to_3d field and its Default derive, the cargo tree C-dependency step for terrio-crs on x86_64 and wasm32, and the consistency of the citation text across README.md, docs/citation.md and CITATION.cff.

Change size

Compared: the whole PR against main (merge base d987600 to PR head 3bc02fb).

Measure Value
Files changed 18 (0 added, 18 modified, 0 removed, 0 renamed)
Size before 313.3 KB
Size after 312.0 KB
Total size change -1.2 KB
Path Before After Change
js/build.mjs 12.5 KB 10.9 KB -1.5 KB
.github/workflows/ci.yml 16.1 KB 16.7 KB +657 B
CHANGELOG.md 24.9 KB 25.4 KB +580 B
docs/javascript.md 31.2 KB 30.9 KB -257 B
js/README.md 18.6 KB 18.4 KB -257 B
.github/workflows/ci-extended.yml 11.6 KB 11.4 KB -166 B
.github/workflows/release-dry-run.yml 3.6 KB 3.4 KB -166 B
.github/workflows/release.yml 6.7 KB 6.5 KB -166 B
crates/terrio-crs/README.md 3.0 KB 2.9 KB -121 B
docs/citation.md 2.0 KB 2.1 KB +60 B
CITATION.cff 996 B 1050 B +54 B
crates/terrio-crs/Cargo.toml 1.2 KB 1.2 KB +44 B
README.md 24.2 KB 24.2 KB +18 B
docs/crs.md 47.1 KB 47.1 KB +7 B
Cargo.lock 89.0 KB 89.0 KB 0 B
Cargo.toml 8.1 KB 8.1 KB 0 B
docs/crs-footprint.md 7.2 KB 7.2 KB 0 B
docs/installation.md 5.5 KB 5.5 KB 0 B

- Add a CI check that terrio-js has no C dependency on either
  WebAssembly target, since the memory64 build no longer handles one.
- State in the changelog that a transformation needing a Zstandard grid
  falls back without an error, and that only_best makes it an error.
Comment thread .github/workflows/ci.yml Resolved
[features]
default = ["libzstd"]
# Zstandard TIFF grids, with the zstd C library. PROJ's grids are DEFLATE-compressed.
default = []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design concern (confidence: medium). Changing the default features of a published crate changes results for unchanged calls. grid.rs:236 maps a read error to None with .ok()?, so a Zstandard grid that is now unsupported is treated as missing. A transformation that needs it falls back to a ballpark operation with no error. The CHANGELOG discloses this, and ONLY_BEST=YES gives an error, but callers who do not inspect diagnostics get no signal. Consider either keeping libzstd in the default set, or having the grid loader report an "unsupported compression" diagnostic so the fallback is visible.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default stays off: having no C dependency by default is the project's stated decision. The changelog documents the fallback and only_best. A diagnostic for unsupported grid compression is the follow-up already noted on this line's other threads, and it is not a release blocker.

Comment thread js/build.mjs Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Code review

Bugs

  • CI "no C dependency" gate can pass without checking anything (.github/workflows/ci.yml:264, also :287). || true swallows cargo tree failures, so set -o pipefail does nothing here. The JS step also uses a narrower name list than the crate step. Confidence: high. Posted inline with a suggestion.
  • Default-feature change silently alters CRS results (crates/terrio-crs/Cargo.toml:26). Zstandard TIFF grids now read as missing (grid.rs:236), so transformations fall back to ballpark operations without an error unless the caller uses ONLY_BEST or checks diagnostics. This is disclosed in the CHANGELOG, but it is a semver-visible change to numeric output. Confidence: medium. Posted inline.

Security

  • No issues found. The changes touch only version strings, docs, CI and build scripts.

Performance

  • No issues found.

Quality

  • Overlong reflowed comment (js/build.mjs:101). Confidence: high. Posted inline with a suggestion.
  • Stale doc, pre-existing on main but contradicted by this PR (docs/rust.md:602-603). It says the parquet feature needs clang for WebAssembly, but the root Cargo.toml sets parquet to default-features = false with no zstd feature, and the CHANGELOG says GeoParquet Zstandard uses ruzstd. Confidence: medium. Not posted because the line is outside the diff.
  • Release ordering (docs/installation.md, docs/crs.md). These point to v0.6.0 and terrio-crs 0.2.0 URLs that will only resolve after the release is published. This is expected for a release PR, so it only needs to be sequenced at merge time. Confidence: high that the URLs are not live yet.

CLAUDE.md

  • The Cargo.toml version bumps follow the AGENTS.md rule that version numbers belong in names only when a public selector uses them, and the PR touches no identifiers. The docs changes look consistent with the code. I found no other violations in the changed files.

Checked and found consistent

  • Terrio's own zstd dependency is gated to non-wasm targets, and parquet is built with default-features = false, so the wasm64 zstd-sys patch removal and the clang removal look consistent with the dependency graph.
  • playground.js still reads VERSION = "0.5.0". The PR body says this is an intended follow-up.

Change size

Compared: the whole PR against main (merge base d987600 to PR head 0e708ba).

Measure Value
Files changed 18 (0 added, 18 modified, 0 removed, 0 renamed)
Size before 313.2 KB
Size after 312.7 KB
Total size change -533 B
Path Before After Change
js/build.mjs 12.5 KB 11.0 KB -1.5 KB
.github/workflows/ci.yml 16.1 KB 17.3 KB +1.2 KB
CHANGELOG.md 24.9 KB 25.6 KB +756 B
docs/javascript.md 30.9 KB 30.9 KB -257 B
js/README.md 18.6 KB 18.4 KB -257 B
.github/workflows/ci-extended.yml 11.6 KB 11.4 KB -166 B
.github/workflows/release-dry-run.yml 3.6 KB 3.4 KB -166 B
.github/workflows/release.yml 6.7 KB 6.5 KB -166 B
crates/terrio-crs/README.md 3.0 KB 2.9 KB -121 B
docs/citation.md 2.0 KB 2.1 KB +60 B
CITATION.cff 972 B 1.0 KB +54 B
crates/terrio-crs/Cargo.toml 1.2 KB 1.2 KB +44 B
README.md 24.2 KB 24.2 KB +18 B
docs/crs.md 47.1 KB 47.1 KB +7 B
Cargo.lock 89.0 KB 89.0 KB 0 B
Cargo.toml 8.1 KB 8.1 KB 0 B
docs/crs-footprint.md 7.2 KB 7.2 KB 0 B
docs/installation.md 5.5 KB 5.5 KB 0 B

- Capture cargo tree's output before filtering it in the JavaScript and
  command-line C dependency checks, so a cargo failure fails the step.
- Match any -sys crate in those checks, as the CRS check does.
- Rewrap the wasm64Patches comment.
[features]
default = ["libzstd"]
# Zstandard TIFF grids, with the zstd C library. PROJ's grids are DEFLATE-compressed.
default = []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silent fallback for default-feature users (medium confidence). Dropping libzstd from the default changes results for existing users of the published crate. A Zstandard TIFF datum grid now fails to decode, and crates/terrio-crs/src/grid.rs:236 (dec.read_chunk(id).ok()?) turns that into "no sample". The transform then falls back to another operation, possibly ballpark, and I found no warning on that path, so the result changes with no diagnostic unless ONLY_BEST=YES is set. The CHANGELOG documents the fallback, but a warning through the existing warnings::warn sink when a grid chunk fails to decode would make the change visible. Worth a decision before 0.2.0 ships.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same concern as the design thread on this line. The fallback is documented in the changelog and only_best turns it into an error, so this does not hold the release. A warning when a grid chunk fails to decode is the follow-up, together with the fixture test.

Comment thread .github/workflows/ci.yml
if [ -n "$found" ]; then echo "C build dependencies for $target: $found"; exit 1; fi
done
# The memory64 build has no C compiler that targets it, so it must not need one. `cc` is left
# out: rusty_av1d depends on it, but builds no C or assembly with its assembly feature off.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C-dependency gate has a hole (medium confidence). Excluding cc from the wasm check (lines 259-260) removes the only check for C built through cc, which is how most C-compiling crates build. The rusty_av1d justification covers one crate, not the whole category. The terrio-crs step at line 256 includes cc, so the two gates disagree. Suggest excluding only rusty_av1d's cc edge, or allowing cc only where its dependant is known, and keeping cc in the list otherwise. The memory64 build in ci-extended (clang removed) remains a backstop, so this is a gap in the fast check rather than an unguarded build.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that this is a gap in the fast check, not an unguarded build: CI still builds terrio for wasm32 without a C compiler, and the memory64 build runs without clang. Limiting the exclusion to the rusty_av1d edge is a reasonable follow-up, and it does not hold the release.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

I read the full diff, the metadata and stats, and the source it touches (terrio-crs grid decoding, Terrio's Cargo features, the CI gate steps, the js build script, and CITATION.cff). I did not run the build or tests, so the CI and wasm64 claims rest on reading.

Bugs

  • None confirmed. The removed zstd-sys patch and clang install are consistent with Terrio's GeoParquet reader (geoparquet_zstd.rs, its own Zstandard path). No dangling references to the removed wasm64Clang remain. Terrio does not enable terrio-crs's libzstd, so Terrio's own CRS behaviour is unchanged.

Security

  • None found. The only changes are version strings, CI shell checks, and docs.

Performance

  • None found.

Quality

  • Silent grid fallback under the new default (medium confidence). Dropping libzstd from the default makes Zstandard TIFF grids decode-fail silently: grid.rs:236 uses .ok()?, and no warning is raised on that path. Results change for default-feature users with no diagnostic unless ONLY_BEST=YES is set. Documented in the CHANGELOG, but a warning would help. Inline comment posted on crates/terrio-crs/Cargo.toml:26.
  • C-dependency gate exclusion (medium confidence). The wasm check in ci.yml drops cc for one crate's sake, which removes the check for C built through cc. The terrio-crs step keeps cc, so the two gates disagree. The memory64 build in ci-extended (clang removed) still catches it. Inline comment posted on .github/workflows/ci.yml:260.
  • Author addition (low confidence, check intent). CITATION.cff, the README and docs/citation.md now name Mavrick Fitzgerald as co-author. Confirm that is agreed before release.
  • Deliberately left at 0.5.0 (no action). docs/javascripts/playground.js:6 keeps VERSION = "0.5.0", per the PR body's follow-up plan.

CLAUDE.md

  • AGENTS.md asks for version numbers only where a public selector uses them, and for identifiers named by behaviour. Nothing in the diff breaks either. The new CI step names are behaviour-based.
  • The terrio-crs 0.1.0 to 0.2.0 bump is justified in the PR body (a breaking addition to the public API), and the CHANGELOG records the default-feature change.

Change size

Compared: the whole PR against main (merge base d987600 to PR head e8289cd). Trees not truncated.

Measure Value
Files changed 18 (added 0, modified 18, removed 0, renamed 0)
Size before 313.2 KB (320,764 B)
Size after 313.0 KB (320,483 B)
Total size change -281 B
Path Before After Change
js/build.mjs 12.5 KB 11.0 KB -1.5 KB
.github/workflows/ci.yml 16.1 KB 17.5 KB +1.4 KB
CHANGELOG.md 24.9 KB 25.6 KB +0.7 KB
docs/javascript.md 31.2 KB 30.9 KB -0.3 KB
js/README.md 18.6 KB 18.4 KB -0.3 KB
.github/workflows/ci-extended.yml 11.6 KB 11.4 KB -166 B
.github/workflows/release-dry-run.yml 3.6 KB 3.4 KB -166 B
.github/workflows/release.yml 6.7 KB 6.5 KB -166 B
crates/terrio-crs/README.md 3.0 KB 2.9 KB -121 B
docs/citation.md 2.0 KB 2.1 KB +60 B
CITATION.cff 996 B 1050 B +54 B
crates/terrio-crs/Cargo.toml 1208 B 1252 B +44 B
README.md 24.2 KB 24.2 KB +18 B
docs/crs.md 47.1 KB 47.1 KB +7 B
Cargo.lock 89.0 KB 89.0 KB 0 B
Cargo.toml 8.1 KB 8.1 KB 0 B
docs/crs-footprint.md 7.2 KB 7.2 KB 0 B
docs/installation.md 5.5 KB 5.5 KB 0 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant