[package]
name = "lindera-nodejs"
version = { workspace = true }
edition = { workspace = true }
description = "A Node.js binding for Lindera."
documentation = "https://docs.rs/lindera-nodejs"
homepage = { workspace = true }
repository = { workspace = true }
readme = "README.md"
keywords = ["morphological", "analysis", "library", "nodejs", "binding"]
categories = { workspace = true }
license = { workspace = true }
[lib]
crate-type = ["cdylib", "lib"]
[features]
embed-ipadic = ["lindera/embed-ipadic"]
embed-ipadic-neologd = [
"lindera/embed-ipadic-neologd",
]
embed-unidic = ["lindera/embed-unidic"]
embed-ko-dic = ["lindera/embed-ko-dic"]
embed-cc-cedict = [
"lindera/embed-cc-cedict",
]
embed-jieba = ["lindera/embed-jieba"]
embed-cjk = [
"lindera/embed-cjk",
]
train = ["lindera/train"]
default = ["train"]
[dependencies]
lindera = { workspace = true }
napi = { version = "3.8.4", features = ["napi8", "serde-json"] }
napi-derive = "3.5.3"
num_cpus = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
[build-dependencies]
napi-build = "2.3.1"
napi-derive-backend = "5.0.2"