13 releases

0.0.13 Oct 2, 2024
0.0.12 Jan 15, 2023
0.0.11 Dec 26, 2022
0.0.10 Feb 10, 2020
0.0.6 Jun 17, 2017

#239 in Math

Download history 7602/week @ 2025-12-31 8459/week @ 2026-01-07 7514/week @ 2026-01-14 7488/week @ 2026-01-21 6585/week @ 2026-01-28 4973/week @ 2026-02-04 2907/week @ 2026-02-11 2448/week @ 2026-02-18 5082/week @ 2026-02-25 7537/week @ 2026-03-04 6345/week @ 2026-03-11 6106/week @ 2026-03-18 5127/week @ 2026-03-25 7100/week @ 2026-04-01 9122/week @ 2026-04-08 11417/week @ 2026-04-15

34,205 downloads per month
Used in 7 crates (4 directly)

Apache-2.0

655KB
12K SLoC

rust-s2

Rust port of Google S2 geometry library.

Build Status docs

Status of the Rust Library

This library is principally a port of the Golang S2 library, adapting to Rust idioms where it makes sense. We detail the progress of this port below relative to that Go library.

ℝ¹ - One-dimensional Cartesian coordinates

Full parity with Go.

ℝ² - Two-dimensional Cartesian coordinates

Full parity with Go.

ℝ³ - Three-dimensional Cartesian coordinates

Full parity with Go.

- Circular Geometry

Full parity with Go.

- Spherical Geometry

complete

  • Cell, CellID, LatLng, Metric, Point, Region, stuv

in progress

  • CellUnion, edgeutil, predicates, Rect

pending

  • loop, paddedcell, polygon, polyline, shapeindex

Dependencies

~2–2.8MB
~62K SLoC