rlx-embed 0.2.4

RLX embedding runtime (BERT / NomicBERT / NomicVision)
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 = "2024"
rust-version = "1.87"
name = "rlx-embed"
version = "0.2.4"
authors = [
    "Eugene Hauptmann",
    "Nataliya Kosmyna",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RLX embedding runtime (BERT / NomicBERT / NomicVision)"
readme = false
license = "GPL-3.0-only"
repository = "https://github.com/MIT-RLX/rlx-models"
resolver = "2"

[features]
all-backends = [
    "metal",
    "mlx",
    "cuda",
    "rocm",
    "gpu",
    "vulkan",
]
amd-gpu = ["rocm"]
apple-silicon = [
    "metal",
    "mlx",
    "gpu",
]
cuda = ["rlx-runtime/cuda"]
default = ["embed"]
embed = ["dep:tokenizers"]
gpu = ["rlx-runtime/gpu"]
hf-download = ["dep:hf-hub"]
metal = ["rlx-runtime/metal"]
mlx = ["rlx-runtime/mlx"]
nvidia-gpu = ["cuda"]
portable-gpu = ["gpu"]
rocm = ["rlx-runtime/rocm"]
vulkan = ["rlx-runtime/vulkan"]

[lib]
name = "rlx_embed"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1"

[dependencies.hf-hub]
version = "0.5"
features = ["ureq"]
optional = true
default-features = false

[dependencies.rlx-bert]
version = "0.2.4"

[dependencies.rlx-core]
version = "0.2.4"
package = "rlx-models-core"

[dependencies.rlx-cpu]
version = "=0.2.4"

[dependencies.rlx-flow]
version = "=0.2.4"

[dependencies.rlx-gguf]
version = "=0.2.4"

[dependencies.rlx-ir]
version = "=0.2.4"

[dependencies.rlx-nomic]
version = "0.2.4"

[dependencies.rlx-opt]
version = "=0.2.4"

[dependencies.rlx-runtime]
version = "=0.2.4"
features = ["cpu"]
default-features = false

[dependencies.rlx-vision]
version = "0.2.4"

[dependencies.safetensors]
version = "0.7"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tokenizers]
version = "0.22"
features = ["onig"]
optional = true
default-features = false

[lints.clippy]
manual_range_contains = "allow"
needless_range_loop = "allow"
too_many_arguments = "allow"
upper_case_acronyms = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust.unused]
level = "warn"
priority = 0