[package]
edition = "2021"
name = "fxtranslate"
version = "0.2.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust reimplementation of the Firefox Translations inference engine, validated against the C++ translator-cli."
readme = "README.md"
keywords = [
"translation",
"machine-translation",
"nlp",
"inference",
"firefox",
]
categories = [
"text-processing",
"science",
]
license = "MPL-2.0"
repository = "https://github.com/gregtatum/translations"
[features]
default = ["fast"]
download = [
"dep:tinyjson",
"dep:ruzstd",
"dep:sha2",
"dep:dirs",
]
fast = [
"lean-embed",
"gemmology",
"mmap",
]
gemmology = []
icu-segmenter = ["dep:icu_segmenter"]
lean-embed = []
mmap = ["dep:memmap2"]
net = [
"download",
"dep:ureq",
]
portable = []
[lib]
name = "fxtranslate"
path = "src/lib.rs"
[[test]]
name = "batched_decode"
path = "tests/batched_decode.rs"
[[test]]
name = "batched_encode"
path = "tests/batched_encode.rs"
[[test]]
name = "gemm_parity"
path = "tests/gemm_parity.rs"
[[test]]
name = "packaging"
path = "tests/packaging.rs"
[[test]]
name = "spm_oracle"
path = "tests/spm_oracle.rs"
[[test]]
name = "spm_parity"
path = "tests/spm_parity.rs"
[[test]]
name = "translate"
path = "tests/translate.rs"
[[test]]
name = "wemb_read_row"
path = "tests/wemb_read_row.rs"
[dependencies.dirs]
version = "6"
optional = true
[dependencies.icu_segmenter]
version = "2"
optional = true
[dependencies.memmap2]
version = "0.9"
optional = true
[dependencies.ruzstd]
version = "0.7"
optional = true
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.tinyjson]
version = "2"
optional = true
[dependencies.ureq]
version = "2"
optional = true
[build-dependencies.cc]
version = "1"