# 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 = "kodegen_simd"
version = "0.4.0"
authors = ["KODEGEN.ᴀɪ"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "KODEGEN.ᴀɪ: SIMD optimization library"
homepage = "https://kodegen.ai"
readme = "README.md"
keywords = [
    "mcp",
    "client",
    "agent",
    "claude",
    "simd",
]
categories = [
    "development-tools",
    "api-bindings",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/cyrup-ai/kodegen-simd"

[features]
accelerate = [
    "dep:accelerate-src",
    "candle-core/accelerate",
    "candle-nn/accelerate",
    "candle-transformers/accelerate",
]
bench = []
cuda = [
    "dep:cudarc",
    "dep:bindgen_cuda",
    "dep:candle-kernels",
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
]
cudnn = [
    "cuda",
    "cudarc/cudnn",
]
debug = []
default = ["reqwest_unstable"]
dev = ["debug"]
metal = [
    "dep:metal",
    "dep:candle-metal-kernels",
    "candle-core/metal",
    "candle-nn/metal",
    "candle-transformers/metal",
]
mkl = [
    "dep:intel-mkl-src",
    "candle-core/mkl",
    "candle-nn/mkl",
    "candle-transformers/mkl",
]
portable_simd = []
reqwest_unstable = []

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "argmax"
path = "benches/argmax.rs"
harness = false
required-features = ["bench"]

[[bench]]
name = "softmax"
path = "benches/softmax.rs"
harness = false
required-features = ["bench"]

[[bench]]
name = "temperature"
path = "benches/temperature.rs"
harness = false
required-features = ["bench"]

[dependencies.ahash]
version = "0.8"

[dependencies.anyhow]
version = "1"

[dependencies.arrayvec]
version = "0.7"

[dependencies.bindgen_cuda]
version = "0.1"
optional = true

[dependencies.candle-core]
version = "0.9.2-alpha.1"
default-features = false

[dependencies.candle-kernels]
version = "0.9.2-alpha.1"
optional = true

[dependencies.candle-metal-kernels]
version = "0.9.2-alpha.1"
optional = true

[dependencies.candle-nn]
version = "0.9.2-alpha.1"
default-features = false

[dependencies.candle-transformers]
version = "0.9.2-alpha.1"
default-features = false

[dependencies.crossbeam-utils]
version = "0.8"

[dependencies.cudarc]
version = "0.17"
features = [
    "cublas",
    "cublaslt",
    "cudnn",
    "curand",
    "dynamic-linking",
    "f16",
    "std",
]
optional = true
default-features = false

[dependencies.cyrup_termcolor]
version = "2"

[dependencies.dashmap]
version = "6"

[dependencies.half]
version = "2"
optional = true

[dependencies.lazy_static]
version = "1"

[dependencies.libm]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.metal]
version = "0.32"
optional = true

[dependencies.once_cell]
version = "1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.9"

[dependencies.rayon]
version = "1"
optional = true

[dependencies.regex]
version = "1"

[dependencies.regex-automata]
version = "0.4"

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

[dependencies.schemars]
version = "1"
features = ["derive"]

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

[dependencies.serde_json]
version = "1"

[dependencies.smallvec]
version = "2.0.0-alpha.11"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.22"

[dependencies.wide]
version = "0.8"

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

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

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.float_eq]
version = "1"

[target.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.dependencies.intel-mkl-src]
version = "0.8"
optional = true

[target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies.intel-mkl-src]
version = "0.8"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.accelerate-src]
version = "0.3"
optional = true
