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

#147 in Math

Download history 2703/week @ 2025-09-11 1570/week @ 2025-09-18 1380/week @ 2025-09-25 928/week @ 2025-10-02 2186/week @ 2025-10-09 3346/week @ 2025-10-16 2230/week @ 2025-10-23 2123/week @ 2025-10-30 2811/week @ 2025-11-06 1903/week @ 2025-11-13 6174/week @ 2025-11-20 4309/week @ 2025-11-27 5078/week @ 2025-12-04 2607/week @ 2025-12-11

8,212 downloads per month
Used in 4 crates (3 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–3MB
~64K SLoC