Skip to content

Commit 47b6c8b

Browse files
authored
Bump rust library to 0.2 (#99)
1 parent 327c549 commit 47b6c8b

File tree

6 files changed

+66
-4
lines changed

6 files changed

+66
-4
lines changed

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Changelog
2+
3+
**This is the changelog for the core Rust library**. There's a [separate changelog](./python/CHANGELOG.md) for the Python bindings.
4+
5+
## [0.2.0] - 2025-01-06
6+
7+
### Breaking
8+
9+
- Use u32 and u16 in public API for num_items and node_size by @kylebarron in https://github.com/kylebarron/geo-index/pull/69
10+
- Rename `OwnedRTree` to `RTree` and `OwnedKDTree` to `KDTree` by @kylebarron in https://github.com/kylebarron/geo-index/pull/81
11+
12+
### Bug fixes
13+
14+
- Fix `intersection_candidates_with_other_tree` by @kylebarron in https://github.com/kylebarron/geo-index/pull/51
15+
- Improve precision in f64 to f32 box cast by @kylebarron in https://github.com/kylebarron/geo-index/pull/76
16+
- Avoid panic for rtree with one item by @kylebarron in https://github.com/kylebarron/geo-index/pull/91
17+
18+
### New Features
19+
20+
- Implement nearest neighbor searches on RTree by @kylebarron in https://github.com/kylebarron/geo-index/pull/79
21+
- Add geo-traits integration by @kylebarron in https://github.com/kylebarron/geo-index/pull/71
22+
- Implement RectTrait for Node by @kylebarron in https://github.com/kylebarron/geo-index/pull/75
23+
- KDTree traversal by @kylebarron in https://github.com/kylebarron/geo-index/pull/96
24+
- Expose RTreeMetadata & KDTreeMetadata (allowing you to infer the memory usage a tree would incur) by @kylebarron in https://github.com/kylebarron/geo-index/pull/77
25+
26+
### Performance
27+
28+
- Remove unnecessary `Cow` in kdtree trait by @kylebarron in https://github.com/kylebarron/geo-index/pull/72
29+
30+
### Documentation
31+
32+
- Use "immutable" over "static" wording in docs by @kylebarron in https://github.com/kylebarron/geo-index/pull/70
33+
- improved rtree & kdtree docs by @kylebarron in https://github.com/kylebarron/geo-index/pull/93
34+
35+
### What's Changed
36+
37+
- Don't panic for accessing level out of bounds by @kylebarron in https://github.com/kylebarron/geo-index/pull/49
38+
39+
### New Contributors
40+
41+
- @H-Plus-Time made their first contribution in https://github.com/kylebarron/geo-index/pull/55
42+
43+
**Full Changelog**: https://github.com/kylebarron/geo-index/compare/v0.1.1...v0.2.0
44+
45+
## [0.1.1] - 2024-01-14
46+
47+
- Updated benchmarks in documentation by @kylebarron in #27
48+
49+
## [0.1.0] - 2024-01-14
50+
51+
- Initial public release.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "geo-index"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
authors = ["Kyle Barron <kylebarron2@gmail.com>"]
55
edition = "2021"
66
rust-version = "1.75"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A Rust crate for packed, immutable, zero-copy spatial indexes.
3232
- Queries return insertion indexes into the input set, so you must manage your own collections.
3333
- Only the set of coordinate types that exist in JavaScript are allowed, to maintain FFI compatibility with the reference JavaScript implementations. Hence this does not support other types like `u64`.
3434

35-
## Alternatives
35+
## Alternative crates
3636

3737
- [`rstar`](https://github.com/georust/rstar): a dynamic RTree implementation.
3838
- [`kdtree`](https://github.com/mrhooray/kdtree-rs): a dynamic KDTree implementation.

python/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- Raise runtime warning for debug builds by @kylebarron in https://github.com/kylebarron/geo-index/pull/63
6+
- RTree Buffer protocol, python binding tests by @H-Plus-Time in https://github.com/kylebarron/geo-index/pull/55
7+
- Python: Return boxes as arrow from RTree by @kylebarron in https://github.com/kylebarron/geo-index/pull/89
8+
- Update Python API & implement RTree partitions, nearest neighbor search by @kylebarron in https://github.com/kylebarron/geo-index/pull/87
9+
- Update python bindings by @kylebarron in https://github.com/kylebarron/geo-index/pull/78
10+
- Add `__repr__` to Python classes by @kylebarron in https://github.com/kylebarron/geo-index/pull/84
11+
- Python docs website & improved rtree & kdtree docs by @kylebarron in https://github.com/kylebarron/geo-index/pull/93
12+
313
## [0.1.0] - 2024-03-26
414

515
- Initial public release.

src/indices.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//! Data structures to hold indices that may be either `u16` or `u32` to save space.
1+
//! Data structures to hold insertion and internal tree indices that may be either `u16` or `u32`
2+
//! to save space.
23
34
use bytemuck::{cast_slice, cast_slice_mut};
45

0 commit comments

Comments
 (0)