[package]
edition = "2021"
rust-version = "1.80"
name = "simi-flow"
version = "0.1.0"
authors = ["SIKTEC Lab <siktec.lab@gmail.com>"]
build = "build.rs"
exclude = [
"js/",
"python/",
"examples/",
"scripts/",
".github/",
"docs/",
"CONTRIBUTING.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A general-purpose toolkit of similarity checks: protect developers from wasting compute on LLMs for simple tasks"
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",
]
license = "MIT"
repository = "https://github.com/siktec-lab/simi-flow"
[features]
default = ["std"]
nodejs = [
"napi",
"napi-derive",
"napi-build",
]
python = ["pyo3"]
std = []
[lib]
name = "simi"
crate-type = [
"lib",
"cdylib",
]
path = "src/lib.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[bench]]
name = "algorithms"
path = "benches/algorithms.rs"
harness = false
[[bench]]
name = "stress"
path = "benches/stress.rs"
harness = false
[dependencies.napi]
version = "3"
features = [
"napi8",
"serde-json",
]
optional = true
[dependencies.napi-derive]
version = "3"
optional = true
[dependencies.pyo3]
version = "0.29"
features = ["extension-module"]
optional = true
[dependencies.rayon]
version = "1.10"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.unicode-segmentation]
version = "1.12"
[dev-dependencies.criterion]
version = "0.8"
[build-dependencies.napi-build]
version = "2"
optional = true
[profile.release]
opt-level = 3
lto = true
codegen-units = 1