[package]
name = "mimirs-encoding"
version.workspace = true
edition = "2024"
license.workspace = true
repository.workspace = true
description = "Semantic vector encoding for MimirsWell using Candle"

[dependencies]
mimirs-wyrd = { workspace = true, optional = true }
mimirs-core = { workspace = true }
mimirs-judge = { workspace = true, optional = true }
hf-hub = { workspace = true, optional = true }
tokenizers = { workspace = true, optional = true }
tokio = { workspace = true }
tracing = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
nalgebra = { workspace = true }
thiserror = { workspace = true }
regex = "1"
rustc-hash = { workspace = true }

[features]
default = ["inference"]
inference = [
    "dep:mimirs-wyrd",
    "dep:mimirs-judge",
    "dep:hf-hub",
    "dep:tokenizers",
    "mimirs-wyrd/inference",
    "mimirs-judge/inference",
]
sleipnir = []
cuda = ["inference", "mimirs-wyrd/cuda", "mimirs-judge/cuda"]
metal = ["inference", "mimirs-wyrd/metal", "mimirs-judge/metal"]
