# 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.85"
name = "gradatum-embed"
version = "0.3.5"
authors = ["Gradatum Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Trait Embedder + HTTP remote backends + embedder_id/dim invariants (local impl provided by gradatum-engine)"
readme = false
license = "Apache-2.0"
repository = "https://github.com/gradatum/gradatum"

[features]
default = []
fastembed-cpu = [
    "dep:fastembed",
    "dep:ort-sys",
]
windows-native-tls = ["reqwest/native-tls"]

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

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

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

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

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

[dependencies.async-trait]
version = "=0.1.89"

[dependencies.fastembed]
version = "=4.6.0"
features = ["hf-hub-rustls-tls"]
optional = true
default-features = false

[dependencies.gradatum-core]
version = "0.3.5"

[dependencies.ort-sys]
version = "=2.0.0-rc.9"
optional = true

[dependencies.reqwest]
version = "=0.13.3"
features = [
    "rustls",
    "json",
    "stream",
]
default-features = false

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

[dependencies.serde_json]
version = "=1.0.149"

[dependencies.thiserror]
version = "=2.0.18"

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

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

[dev-dependencies.wiremock]
version = "=0.6.5"
