# 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.75"
name = "leindex-embed"
version = "1.7.1"
authors = ["LeIndex Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ONNX embedding worker for LeIndex — runs neural embedding and reranking inference in a separate process"
homepage = "https://github.com/scooter-lacroix/LeIndex#readme"
readme = false
license = "MIT"
repository = "https://github.com/scooter-lacroix/LeIndex"

[features]
default = []
onnx = [
    "dep:ort",
    "dep:tokenizers",
    "dep:ndarray",
]

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

[[bin]]
name = "leindex-embed"
path = "src/bin/leindex-embed.rs"
doc = false

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bincode]
version = "1.3"

[dependencies.dirs]
version = "5"

[dependencies.ndarray]
version = "0.17"
optional = true

[dependencies.ort]
version = "2.0.0-rc.12"
features = ["ndarray"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokenizers]
version = "0.20"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
