Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/rust-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Rust CD

on:
push:
tags:
- "v*.*.*"

jobs:
publish-crates-io:
name: Publish on crates.io
needs: publish-github
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Publish
run: cargo publish --locked --token ${{ secrets.CARGO_TOKEN }}
26 changes: 24 additions & 2 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Check the lints
run: cargo clippy --tests --verbose -- -D warnings


rustfmt:
name: Formatting
runs-on: ubuntu-latest
Expand All @@ -64,4 +63,27 @@ jobs:
with:
args: -v *.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Check documentation errors
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --document-private-items --all-features --examples

publish-dry-run:
name: Publish dry run
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo publish --dry-run
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Possible sections are:

<!-- next-header -->

## [0.2.0] - 2025-04-30

- Added basic support for geo-primitive types (#1), including encoding Points and MultiPoints into Quadbin Cells and decoding Quadbin Cells into Polygons.
- Significantly rewrote the codebase to make it more idiomatic. Most functions now return either `Result<>` or `Option<>`.
- Added benchmarks to evaluate performance and compare with `geohash` and `h3o`.

## [0.1.0] - 2025-04-26

Expand Down
200 changes: 197 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "qbin"
version = "0.1.1"
version = "0.2.0"
authors = ["Anatoly Tsyplenkov <atsyplenkov@fastmail.com>"]
edition = "2024"
license = "MIT"
Expand All @@ -10,9 +10,10 @@ documentation = "https://docs.rs/qbin"
readme = "README.md"
description = "Encoding and decoding geographical coordinates to and from Quadbin, a hierarchical geospatial indexing system for square cells in Web Mercator projection developed by Carto. An improved version of Microsoft's Bing Maps Tile System, aka Quadkey."
keywords = ["quadbin", "quadkey", "spatial", "spatial-index"]
categories = ["data-structures", "science::geo"]
categories = ["science::geo"]

[dependencies]
geo = "0.30.0"

[dev-dependencies]
approx = "0.5.1"
Expand Down
Loading