[package]
name = "simi-flow"
version = "0.1.3"
edition = "2021"
rust-version = "1.80"
description = "A production-grade similarity and text-analysis engine: 8 algorithms plus intent-aware routing for matching, dedup, spam, and bot protection"
authors = ["SIKTEC Lab <siktec.lab@gmail.com>"]
license = "MIT"
repository = "https://github.com/siktec-lab/simi-flow"
homepage = "https://github.com/siktec-lab/simi-flow"
documentation = "https://docs.rs/simi-flow"
readme = "README.md"
keywords = ["similarity", "levenshtein", "jaro-winkler", "bm25", "tf-idf"]
categories = ["algorithms", "science", "text-processing"]
exclude = [
"js/",
"python/",
"examples/",
"scripts/",
".github/",
"docs/",
"CONTRIBUTING.md",
]
[lib]
name = "simi"
path = "src/lib.rs"
crate-type = ["lib", "cdylib"]
[features]
default = ["std"]
std = []
python = ["pyo3"]
nodejs = ["napi", "napi-derive", "napi-build"]
[dependencies]
thiserror = "2.0"
rayon = "1.10"
unicode-normalization = "0.1"
unicode-segmentation = "1.12"
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
pyo3 = { version = "0.29", features = ["extension-module"], optional = true }
napi = { version = "3", features = ["napi8", "serde-json"], optional = true }
napi-derive = { version = "3", optional = true }
[build-dependencies]
napi-build = { version = "2", optional = true }
[dev-dependencies]
criterion = "0.8"
[[bench]]
name = "algorithms"
harness = false
[[bench]]
name = "stress"
harness = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1