# 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 = "2024"
name = "mimirs-encoding"
version = "0.1.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Semantic vector encoding for MimirsWell using Candle"
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/sydonayrex/mimirswell"
resolver = "2"

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

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

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

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

[dependencies.hf-hub]
version = "0.4"
optional = true

[dependencies.mimirs-core]
version = "0.1.7"

[dependencies.mimirs-judge]
version = "0.1.7"
optional = true

[dependencies.mimirs-wyrd]
version = "0.1.7"
optional = true

[dependencies.nalgebra]
version = "0.33"
features = ["serde-serialize"]

[dependencies.regex]
version = "1"

[dependencies.rustc-hash]
version = "2.1"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio]
version = "1.40"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "fs",
    "time",
    "signal",
    "tracing",
]

[dependencies.tracing]
version = "0.1"
