# 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"
name = "diskann-disk"
version = "0.55.0"
authors = ["Microsoft"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DiskANN3 is a composable library for bringing scalable, accurate and cost-effective vector indexing to multiple databases."
readme = "README.md"
license = "MIT"
repository = "https://github.com/microsoft/DiskANN"
resolver = "3"

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = [
    "x86_64-unknown-linux-gnu",
    "aarch64-pc-windows-msvc",
    "x86_64-pc-windows-msvc",
]

[features]
default = []
experimental_diversity_search = [
    "diskann/experimental_diversity_search",
    "diskann-providers/experimental_diversity_search",
]
perf_test = ["dep:opentelemetry"]

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

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

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

[dependencies.anyhow]
version = "1.0.98"

[dependencies.bincode]
version = "1.3.3"

[dependencies.bytemuck]
version = "1.23.0"

[dependencies.byteorder]
version = "1.5.0"

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.diskann]
version = "0.55.0"

[dependencies.diskann-linalg]
version = "0.55.0"

[dependencies.diskann-providers]
version = "0.55.0"
default-features = false

[dependencies.diskann-quantization]
version = "0.55.0"
features = ["rayon"]
default-features = false

[dependencies.diskann-utils]
version = "0.55.0"
default-features = false

[dependencies.diskann-vector]
version = "0.55.0"

[dependencies.futures-util]
version = "0.3.31"
default-features = false

[dependencies.half]
version = "2.6.0"
features = [
    "bytemuck",
    "num-traits",
]

[dependencies.hashbrown]
version = "0.16.0"

[dependencies.opentelemetry]
version = "0.32.0"
optional = true

[dependencies.rand]
version = "0.9.3"

[dependencies.rayon]
version = "1.10.0"

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

[dependencies.thiserror]
version = "2.0.12"

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

[dependencies.tracing]
version = "0.1.40"

[dependencies.vfs]
version = "0.12.1"

[dev-dependencies.approx]
version = "0.5.1"

[dev-dependencies.criterion]
version = "0.5.1"

[dev-dependencies.diskann]
version = "0.55.0"

[dev-dependencies.diskann-providers]
version = "0.55.0"
features = [
    "testing",
    "virtual_storage",
]
default-features = false

[dev-dependencies.diskann-utils]
version = "0.55.0"
features = ["testing"]
default-features = false

[dev-dependencies.iai-callgrind]
version = "0.14.0"

[dev-dependencies.proptest]
version = "1.6.0"

[dev-dependencies.rstest]
version = "0.23.0"

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

[dev-dependencies.vfs]
version = "0.12.1"

[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.6.4"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_Storage",
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
    "Win32_System_Threading",
    "Win32_System_WindowsProgramming",
    "Win32_System_ProcessStatus",
    "Win32_System_SystemInformation",
]

[target."cfg(unix)".dependencies.libc]
version = "0.2.148"

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