[package]
edition = "2024"
rust-version = "1.89"
name = "packed_spatial_index"
version = "0.13.0"
build = false
exclude = [
"/.github/",
"/benches/tools/",
"/wasm-demo/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Packed static spatial index (Hilbert R-tree) for 2D/3D AABBs — SIMD range, kNN, raycast, and spatial-join queries, with zero-copy and streaming serialization."
documentation = "https://docs.rs/packed_spatial_index"
readme = "README.md"
keywords = [
"spatial",
"rtree",
"aabb",
"knn",
"bvh",
]
categories = [
"algorithms",
"data-structures",
"game-development",
"science::geo",
]
license = "Apache-2.0"
repository = "https://github.com/Filyus/packed_spatial_index"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
async = [
"stream",
"dep:futures-util",
]
bench-internals = []
default = [
"parallel",
"simd",
]
f32-storage = []
parallel = ["dep:rayon"]
simd = ["dep:wide"]
stream = []
[lib]
name = "packed_spatial_index"
path = "src/lib.rs"
[[example]]
name = "basic_2d"
path = "examples/basic_2d.rs"
[[example]]
name = "basic_3d"
path = "examples/basic_3d.rs"
[[example]]
name = "f32_exact_2d"
path = "examples/f32_exact_2d.rs"
required-features = [
"f32-storage",
"simd",
]
[[example]]
name = "knn_2d"
path = "examples/knn_2d.rs"
[[example]]
name = "knn_3d"
path = "examples/knn_3d.rs"
[[example]]
name = "persistence_2d"
path = "examples/persistence_2d.rs"
[[example]]
name = "persistence_3d"
path = "examples/persistence_3d.rs"
[[example]]
name = "raycast_mesh"
path = "examples/raycast_mesh.rs"
[[example]]
name = "reuse_workspace_2d"
path = "examples/reuse_workspace_2d.rs"
[[example]]
name = "reuse_workspace_3d"
path = "examples/reuse_workspace_3d.rs"
[[example]]
name = "stream_query"
path = "examples/stream_query.rs"
required-features = ["stream"]
[[test]]
name = "api_2d"
path = "tests/api_2d.rs"
[[test]]
name = "api_3d"
path = "tests/api_3d.rs"
[[test]]
name = "encoders_2d"
path = "tests/encoders_2d.rs"
[[test]]
name = "frustum"
path = "tests/frustum.rs"
[[test]]
name = "index2d_f32"
path = "tests/index2d_f32.rs"
[[test]]
name = "index3d_f32"
path = "tests/index3d_f32.rs"
[[test]]
name = "join_2d"
path = "tests/join_2d.rs"
[[test]]
name = "join_3d"
path = "tests/join_3d.rs"
[[test]]
name = "knn_2d"
path = "tests/knn_2d.rs"
[[test]]
name = "knn_box_2d"
path = "tests/knn_box_2d.rs"
[[test]]
name = "knn_box_3d"
path = "tests/knn_box_3d.rs"
[[test]]
name = "metadata"
path = "tests/metadata.rs"
[[test]]
name = "payload"
path = "tests/payload.rs"
[[test]]
name = "persistence_2d"
path = "tests/persistence_2d.rs"
[[test]]
name = "persistence_3d"
path = "tests/persistence_3d.rs"
[[test]]
name = "persistence_simd"
path = "tests/persistence_simd.rs"
[[test]]
name = "polygon"
path = "tests/polygon.rs"
[[test]]
name = "proptest_2d"
path = "tests/proptest_2d.rs"
[[test]]
name = "proptest_3d"
path = "tests/proptest_3d.rs"
[[test]]
name = "raycast_2d"
path = "tests/raycast_2d.rs"
[[test]]
name = "raycast_3d"
path = "tests/raycast_3d.rs"
[[test]]
name = "simd_2d"
path = "tests/simd_2d.rs"
[[test]]
name = "simd_3d"
path = "tests/simd_3d.rs"
[[test]]
name = "simd_parallel"
path = "tests/simd_parallel.rs"
[[test]]
name = "simd_view"
path = "tests/simd_view.rs"
[[test]]
name = "stream_f32"
path = "tests/stream_f32.rs"
[[test]]
name = "stream_f32_mesh"
path = "tests/stream_f32_mesh.rs"
[[test]]
name = "triangle"
path = "tests/triangle.rs"
[[bench]]
name = "coord_precision"
path = "benches/coord_precision.rs"
harness = false
required-features = [
"f32-storage",
"simd",
]
[[bench]]
name = "flatgeobuf2d_bench"
path = "benches/flatgeobuf2d_bench.rs"
harness = false
required-features = [
"parallel",
"simd",
"bench-internals",
]
[[bench]]
name = "hilbert2d_bench"
path = "benches/hilbert2d_bench.rs"
harness = false
required-features = ["bench-internals"]
[[bench]]
name = "index2d_bench"
path = "benches/index2d_bench.rs"
harness = false
required-features = [
"parallel",
"simd",
"bench-internals",
]
[[bench]]
name = "index3d_bench"
path = "benches/index3d_bench.rs"
harness = false
required-features = ["bench-internals"]
[[bench]]
name = "persistence_knn2d_bench"
path = "benches/persistence_knn2d_bench.rs"
harness = false
required-features = [
"simd",
"bench-internals",
]
[[bench]]
name = "persistence_knn3d_bench"
path = "benches/persistence_knn3d_bench.rs"
harness = false
required-features = [
"simd",
"bench-internals",
]
[[bench]]
name = "raycast3d_bench"
path = "benches/raycast3d_bench.rs"
harness = false
required-features = ["simd"]
[[bench]]
name = "raytriangle3d_bench"
path = "benches/raytriangle3d_bench.rs"
harness = false
required-features = ["simd"]
[[bench]]
name = "sortkey2d_bench"
path = "benches/sortkey2d_bench.rs"
harness = false
required-features = ["bench-internals"]
[dependencies.futures-util]
version = "0.3"
features = ["alloc"]
optional = true
default-features = false
[dependencies.rayon]
version = "1"
optional = true
[dependencies.wide]
version = "1.5.0"
optional = true
[dev-dependencies.bvh]
version = "0.12.0"
features = ["std"]
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[dev-dependencies.fast_hilbert]
version = "2.1.0"
[dev-dependencies.flatgeobuf]
version = "6.0.1"
default-features = false
[dev-dependencies.nalgebra]
version = "0.34.2"
features = ["std"]
default-features = false
[dev-dependencies.pollster]
version = "0.4"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rand]
version = "0.10.1"
[dev-dependencies.static_aabb2d_index]
version = "2"
[lints.clippy]
undocumented_unsafe_blocks = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]
[profile.bench]
lto = true
codegen-units = 1
[profile.release]
lto = true
codegen-units = 1