Repository navigation
Add RustGIS: pure-Rust desktop GIS with a ribbon UI - #1
Conversation
Layered workspace: - geom: coordinates, extents, Web Mercator, geodesic measurement - data: feature model, GeoJSON/CSV/Shapefile I/O, SQL where clauses - map: layers, symbology, labeling, camera, basemaps - analysis: geoprocessing tools on `geo` (buffer, clip, erase, dissolve, summarize within, statistics, ...) - render: tiny-skia renderer, label placement, PNG export - engine: session, undo, command registry, feature catalog, sample - ui-egui: ribbon with contextual tabs, panes, map view, attribute table, dialogs, code-drawn icons, light and dark themes Apps: `rustgis` (desktop) and `rustgis-cli`; `cargo xtask ci` runs fmt, clippy, tests and the layering check.
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 56 minutes. View limit details
opengeos is on CodeRabbit Free, which includes PR summaries. Ask your admin to upgrade for code reviews.
ℹ️ Recent review info
📝 Walkthrough
A rabbit hops through RustGIS maps, Comment |
Code reviewI did a focused review of this very large PR (about 78 files, mostly new code). I read Bugs
Performance
Security
Quality
CLAUDE.md
|
Runs pre-commit (fmt, clippy, file checks) on Ubuntu, and tests, the layering check and a release build on Linux, macOS and Windows.
Code reviewThis PR is very large (about 18k lines). I read the diff metadata and the I/O layer ( Bugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md compliance
|
- project.new/sample/open/save/saveAs are no longer undoable edits: saving clears the dirty marker, and new/open/sample clear the undo/redo and extent history, so Ctrl+Z can't swap the old project back in (regression test added) - CSV reader counts malformed rows in ReadReport; READ_EXTENSIONS lists "txt", which read_path already accepted - read_geojson borrows features instead of cloning the document - rename s_tool to parse_tool - remove CLAUDE.md: Claude Code reads AGENTS.md directly
Code reviewThis PR is very large (about 18k lines). I read these files in full:
I also checked the Bugs
Security
Performance
Quality
CLAUDE.md (AGENTS.md)
|
- Remove docs/images; the README now loads WebP screenshots from https://assets.rustgis.app (opengeos/rustgis-assets) - Note the assets repo in AGENTS.md; drop the screenshot row from ATTRIBUTION.md and the docs/images pre-commit excludes - Bump actions/checkout to v5 and actions/setup-python to v6 (Node 20 deprecation)
Code reviewThis PR is very large (71 files, about 18k lines). I read Bugs
Security / hostile input
Performance
Quality
CLAUDE.md / AGENTS.md
|
- dbf Numeric columns whose values are all whole numbers are read as Integer (the header has no decimal count); non-finite numerics are no longer cast to i64 - edit.addFeature rejects every empty or degenerate geometry kind (short lines, empty multipoints, empty polygons) - deleting a field resets a renderer, labels or definition query that used it - query: double-quoted names are never keywords or literals; AND/OR chains are capped at 256 terms to bound recursion - CSV: strip a UTF-8 BOM; NaN/inf no longer make a column Double; export guards spreadsheet formula injection and avoids duplicate longitude/latitude columns - .shp and .dbf sizes are checked like other formats - saves and exports write through a synced temp file and rename, removing the temp file on failure - CLI: case-insensitive .rgisx detection; non-finite --width, --height and --dpi are ignored; share.exportMap ignores NaN sizes
- Zensical site (zensical.toml, docs/*.md) for https://rustgis.app, published to GitHub Pages from main (docs.yml); docs/CNAME - PR previews on Cloudflare Pages (docs-preview.yml, project rustgis-preview) with a sticky PR comment - Remove assets/data: render's build.rs downloads the Natural Earth sample data from https://assets.rustgis.app/data (or copies it from RUSTGIS_DATA_DIR for offline builds) - pre-commit: limit added files to 1 MB - CI: actions/checkout v7
Code reviewThis PR is very large (81 files, about 18.7k added lines). I read the workflow, Bugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md
|
- GeoJSON schema inference keeps a field's type unknown until a non-null value is seen, so a column like [null, 1, 2] is numeric; all-null columns still become Text (regression test) - index fields by name with a HashMap while inferring the schema instead of a linear scan per property
Code reviewI did not review all of this PR. It adds about 18.8k lines across 81 files, and I read only Bugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md
|
Strip whitespace, quotes and a Bearer prefix from CLOUDFLARE_API_TOKEN, verify it with Cloudflare before deploying, and report a malformed or rejected token clearly without printing it.
Verify the token against /accounts/<id>/tokens/verify as well as /user/tokens/verify; account-owned tokens only pass the former.
Code reviewThis PR adds about 18.8k lines. I read the CI and docs workflows and Bugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md
|
📖 Docs preview
|
- write_atomic: unique temp name per write (PID + counter) opened with create_new, so concurrent writes never share a temp file and an existing file or symlink is never followed; reject paths with no file name (regression test) - docs-preview: strip a "Bearer " prefix before removing whitespace, add curl --max-time 20 and report network errors separately, and clear the token from the environment after the deploy step - geometry_to_geojson uses slice patterns instead of indexing - lower the in-memory read cap for text formats to 256 MiB
A rust-coloured cog framing a globe split into blue, teal, green and gold segments by white gaps, with a tilted orbit. It is drawn in code (rustgis_render::logo) for the window icon, header, About dialog and backstage, and published as SVG/PNG/favicon in rustgis-assets for the README and the website.
Code reviewThis PR is large: 82 files and about 19k added lines. I read the data I/O layer ( Bugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md
|
- CSV type inference reads values with a leading zero (02134, -007)
as Text, so ZIP codes and IDs keep their zeros
- read_csv strips the export formula guard ('=x -> =x), so an
export/import round trip is stable (regression test)
| match g { | ||
| Geometry::Point(p) => json!({"type": "Point", "coordinates": c(p)}), | ||
| Geometry::MultiPoint(v) => json!({"type": "MultiPoint", "coordinates": l(v)}), | ||
| Geometry::Line(parts) if let [only] = parts.as_slice() => json!({"type": "LineString", "coordinates": l(only)}), |
There was a problem hiding this comment.
if let guards in match arms (here and on the Polygon arm below) were only stabilized in Rust 1.95, but the workspace declares rust-version = "1.90". Anyone on 1.90–1.94 will hit a compile error instead of the MSRV check you intended. Either bump rust-version or rewrite these arms with a plain match parts.as_slice() (confidence: medium, depends on the toolchain stabilization date).
Code reviewThis PR is very large (82 files, about 19k lines). I read the PR metadata, the CI and docs-preview workflows, and Bugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md
|
Summary
Adds RustGIS, an open-source desktop GIS written in pure Rust with a ribbon-based workflow: maps and layers, symbology, labeling, selection, editing, geoprocessing and export. Every action is a command with an id, shared by the ribbon, keyboard shortcuts, command search (Ctrl+K) and the
rustgis-clicommand line.Architecture
rustgis-geomrustgis-datarustgis-map,rustgis-analysisrustgis-renderrustgis-enginerustgis-ui-eguirustgis,rustgis-clicargo xtask layersenforces that nothing below L6 depends on egui/eframe/rfd.Features
.rgisxproject filesTest plan
cargo xtask ci(fmt, clippy-D warnings, 37 tests, layering check)pre-commit run --all-filesui_shotexampleSummary by CodeRabbit