packed_spatial_index 0.4.0

Packed static spatial index for 2D and 3D AABBs with Hilbert ordering, adaptive parallel builds, and SIMD queries.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "packed_spatial_index"
version = "0.4.0"
build = false
exclude = [
    "/.github/",
    "/benches/tools/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Packed static spatial index for 2D and 3D AABBs with Hilbert ordering, adaptive parallel builds, and SIMD queries."
documentation = "https://docs.rs/packed_spatial_index"
readme = "README.md"
keywords = [
    "spatial",
    "index",
    "aabb",
    "hilbert",
    "rtree",
]
categories = [
    "algorithms",
    "data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/Filyus/packed_spatial_index"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
bench-internals = []
default = [
    "parallel",
    "simd",
]
parallel = ["dep:rayon"]
simd = ["dep:wide"]

[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 = "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 = "reuse_workspace_2d"
path = "examples/reuse_workspace_2d.rs"

[[example]]
name = "reuse_workspace_3d"
path = "examples/reuse_workspace_3d.rs"

[[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 = "knn_2d"
path = "tests/knn_2d.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 = "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"

[[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 = "sortkey2d_bench"
path = "benches/sortkey2d_bench.rs"
harness = false
required-features = ["bench-internals"]

[dependencies.rayon]
version = "1"
optional = true

[dependencies.wide]
version = "1.4.0"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.flatgeobuf]
version = "6.0.1"
default-features = false

[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