Repository navigation
Release 0.6.0 - #443
Release 0.6.0#443
Conversation
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.
|
No actionable comments were generated in the recent review.
|
| 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
- opengeos/terrio#266: The release updates the standalone CRS crate requested by this issue.
Possibly related PRs
- opengeos/terrio#297: This PR defines the
libzstdfeature 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: 
5
-
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.
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.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md (AGENTS.md)
Checked and found no issue: the CHANGELOG Change sizeCompared with the base branch: the whole PR against
|
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.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md (AGENTS.md)
Change sizeCompared with the base branch: the whole PR against main (merge base 80804f7 to PR head 393c7bc).
|
| [features] | ||
| default = ["libzstd"] | ||
| # Zstandard TIFF grids, with the zstd C library. PROJ's grids are DEFLATE-compressed. | ||
| default = [] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md
Change sizeCompared with
|
- 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.
| [features] | ||
| default = ["libzstd"] | ||
| # Zstandard TIFF grids, with the zstd C library. PROJ's grids are DEFLATE-compressed. | ||
| default = [] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md
Change sizeCompared with
|
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.
Code reviewReviewed the full 18-file diff (version bump to 0.6.0 / terrio-crs 0.2.0, CI and release workflow changes, Bugs
Security
Performance
Quality
CLAUDE.md
Checked and found correct: publish order in Change sizeCompared: the whole PR against main (merge base d987600 to PR head 3bc02fb).
|
- 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.
| [features] | ||
| default = ["libzstd"] | ||
| # Zstandard TIFF grids, with the zstd C library. PROJ's grids are DEFLATE-compressed. | ||
| default = [] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md
Checked and found consistent
Change sizeCompared: the whole PR against main (merge base d987600 to PR head 0e708ba).
|
- 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 = [] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Code reviewI 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
Security
Performance
Quality
CLAUDE.md
Change sizeCompared: the whole PR against main (merge base d987600 to PR head e8289cd). Trees not truncated.
|
Bumps the workspace version to 0.6.0 and
terrio-crsto 0.2.0 (Cargo.toml, Cargo.lock, crate manifest), points the install examples, the Pyodide wheel URL,docs/crs.mdand CITATION.cff at the new versions, and turns the changelog's Unreleased section into 0.6.0.Why
terrio-crsmoves too: the crate on crates.io is still 0.1.0 from 2026-10-25, while the workspace copy has gained APIsterriouses (PROJJSON, IAU, geocentric). The release workflow skips a version already on crates.io, so without a bumpcargo publish -p terriowould 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-jsversion 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
terrio-crs0.2.0 release adds geocentric and IAU coordinate reference systems, PROJJSON support, and additional projections.TransformOptionsnow includes apromote_to_3doption.libzstdfeature. Transformations may fall back to another operation when a required grid is unavailable;only_bestmakes this an error.Citation: adds Mavrick Fitzgerald as an author in CITATION.cff, the README and the How to Cite page.