[package]
edition = "2024"
name = "divot"
version = "0.1.0"
build = "build.rs"
exclude = [
"npm/",
"plots/",
"scripts/",
"test/",
".github/",
"package.json",
"package-lock.json",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast diff/patch engine, in Rust, with a Node.js binding (Python planned)"
readme = "README.md"
keywords = [
"diff",
"patch",
"text",
"myers",
"histogram",
]
categories = [
"algorithms",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hsputra/divot"
[features]
node = [
"dep:napi",
"dep:napi-derive",
"dep:napi-build",
]
[lib]
name = "divot"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "corpus_bench"
path = "examples/corpus_bench.rs"
[dependencies.imara-diff]
version = "0.2"
features = ["unified_diff"]
[dependencies.napi]
version = "3.12.0"
features = ["napi4"]
optional = true
[dependencies.napi-derive]
version = "3.6.2"
optional = true
[dependencies.rayon]
version = "1.12.0"
[build-dependencies.napi-build]
version = "2.4.0"
optional = true