precinct 0.8.0

Approximate nearest-neighbor search over region embeddings
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 = "2021"
rust-version = "1.89"
name = "precinct"
version = "0.8.0"
authors = ["Arc <attobop@gmail.com>"]
build = false
exclude = [
    "benches/",
    "data/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Approximate nearest-neighbor search over region embeddings"
documentation = "https://docs.rs/precinct"
readme = "README.md"
keywords = [
    "ann",
    "box-embedding",
    "region-search",
    "nearest-neighbor",
    "containment",
]
categories = [
    "algorithms",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/precinct"

[features]
default = ["index"]
index = ["dep:vicinity"]
serde = ["dep:serde"]
store = [
    "index",
    "serde",
    "dep:segstore",
    "dep:durability",
]

[lib]
name = "precinct"
path = "src/lib.rs"

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

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

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

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

[[test]]
name = "region_nearest"
path = "tests/region_nearest.rs"

[dependencies.durability]
version = "0.6"
optional = true

[dependencies.segstore]
version = "0.2"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.vicinity]
version = "0.8"
features = ["hnsw"]
optional = true
default-features = false

[dev-dependencies.clump]
version = "0.5"

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.vicinity]
version = "0.8"
features = ["hnsw"]
default-features = false