# 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.95"
name = "dynomite-vec"
version = "1.3.0"
authors = ["Greg Burd <greg@burd.me>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Vector storage + HNSW ANN index engine for the Dynomite Rust port"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/gburd/dynomite"

[features]
default = []
http = [
    "dep:hyper",
    "dep:hyper-util",
    "dep:http-body-util",
]
noxu = ["dep:noxu"]

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

[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
required-features = ["http"]

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

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

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

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

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

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

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

[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false

[dependencies.bytes]
version = "1.11"

[dependencies.half]
version = "2.4"

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.hyper]
version = "1.9"
features = [
    "http1",
    "server",
]
optional = true

[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
optional = true

[dependencies.noxu]
version = "7.4.0"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.52"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.turbovec]
version = "0.8"

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

[dev-dependencies.hegeltest]
version = "0.23"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.hyper]
version = "1.9"
features = [
    "http1",
    "server",
    "client",
]

[dev-dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "client-legacy",
    "http1",
]

[dev-dependencies.tempfile]
version = "3.27"

[dev-dependencies.tokio]
version = "1.52"
features = ["full"]

[lints.clippy]
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]
