# 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"
rust-version = "1.85"
name = "narashi"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "多言語埋め込みで類似テキストを検出し、より汎用的な表記に統合して表記ゆれを解消するライブラリ・CLI"
readme = "README.md"
keywords = [
    "nlp",
    "embeddings",
    "similarity",
    "deduplication",
    "fuzzy-matching",
]
categories = [
    "text-processing",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Mokuichi147/narashi"

[features]
candle = [
    "dep:candle-core",
    "dep:candle-nn",
    "dep:candle-transformers",
    "dep:serde_json",
]
cli = ["dep:clap"]
cuda = [
    "candle",
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
]
default = [
    "onnx",
    "candle",
    "cli",
]
metal = [
    "candle",
    "candle-core/metal",
    "candle-nn/metal",
    "candle-transformers/metal",
]
onnx = ["dep:fastembed"]
onnx-cuda = [
    "onnx",
    "dep:ort",
    "ort/cuda",
]

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

[[bin]]
name = "narashi"
path = "src/main.rs"
required-features = ["cli"]

[[example]]
name = "benchmark"
path = "examples/benchmark.rs"
required-features = ["onnx"]

[[example]]
name = "candle_eval"
path = "examples/candle_eval.rs"
required-features = ["candle"]

[[example]]
name = "fine_sweep"
path = "examples/fine_sweep.rs"
required-features = ["onnx"]

[[example]]
name = "pairdump"
path = "examples/pairdump.rs"

[[example]]
name = "robustness"
path = "examples/robustness.rs"

[dependencies.anyhow]
version = "1"

[dependencies.candle-core]
version = "0.9.2"
optional = true

[dependencies.candle-nn]
version = "0.9.2"
optional = true

[dependencies.candle-transformers]
version = "0.9.2"
optional = true

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.fastembed]
version = "4"
optional = true

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

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

[dependencies.rayon]
version = "1"

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

[dependencies.tokenizers]
version = "0.21"
features = [
    "http",
    "onig",
]
default-features = false
