fxtranslate 0.4.2

Rust reimplementation of the Firefox Translations inference engine, validated against the C++ translator-cli.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "fxtranslate"
version = "0.4.2"
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"]
discovery = [
    "dep:tinyjson",
    "dep:ruzstd",
    "dep:sha2",
]
download = [
    "discovery",
    "dep:dirs",
]
fast = [
    "lean-embed",
    "gemmology",
    "mmap",
]
gemm-threads = ["gemmology"]
gemmology = []
icu-segmenter = ["dep:icu_segmenter"]
lean-embed = []
mmap = ["dep:memmap2"]
net = [
    "download",
    "dep:ureq",
]
portable = []
threads = []

[lib]
name = "fxtranslate"
crate-type = [
    "rlib",
    "cdylib",
]
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"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"