open_clip_inference 0.3.2

Run OpenCLIP compatible embedding models via ONNX Runtime
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"
name = "open_clip_inference"
version = "0.3.2"
build = false
exclude = [
    "assets",
    "benches",
    "examples",
    "scripts",
    "tests",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Run OpenCLIP compatible embedding models via ONNX Runtime"
readme = "README.md"
keywords = [
    "clip",
    "onnx",
    "embedding",
    "inference",
    "computer-vision",
]
categories = ["computer-vision"]
license = "MIT"
repository = "https://github.com/RuurdBijlsma/open-clip-rs"

[features]
acl = ["ort/acl"]
armnn = ["ort/armnn"]
azure = ["ort/azure"]
cann = ["ort/cann"]
copy-dylibs = ["ort/copy-dylibs"]
coreml = ["ort/coreml"]
cuda = ["ort/cuda"]
default = [
    "download-binaries",
    "copy-dylibs",
    "hf-hub",
    "fast_image_resize",
]
directml = ["ort/directml"]
download-binaries = ["ort/download-binaries"]
fast_image_resize = ["dep:fast_image_resize"]
hf-hub = ["dep:hf-hub"]
load-dynamic = ["ort/load-dynamic"]
migraphx = ["ort/migraphx"]
nnapi = ["ort/nnapi"]
nvrtx = ["ort/nvrtx"]
onednn = ["ort/onednn"]
openvino = ["ort/openvino"]
qnn = ["ort/qnn"]
rknpu = ["ort/rknpu"]
tensorrt = ["ort/tensorrt"]
tvm = ["ort/tvm"]
vitis = ["ort/vitis"]
webgpu = ["ort/webgpu"]
xnnpack = ["ort/xnnpack"]

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

[dependencies.bon]
version = "3.8.2"

[dependencies.fast_image_resize]
version = "6.0.0"
optional = true

[dependencies.hf-hub]
version = "0.5.0"
features = ["tokio"]
optional = true

[dependencies.image]
version = "0.25.9"

[dependencies.ndarray]
version = "0.17.2"
features = ["rayon"]

[dependencies.num_cpus]
version = "1.17.0"

[dependencies.ort]
version = "2.0.0-rc.12"
features = ["ndarray"]

[dependencies.rayon]
version = "1.11.0"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokenizers]
version = "0.22.2"

[dev-dependencies.color-eyre]
version = "0.6.5"

[dev-dependencies.criterion]
version = "0.8.1"
features = ["html_reports"]

[dev-dependencies.tokio]
version = "1.49.0"

[dev-dependencies.tracing]
version = "0.1.44"

[dev-dependencies.tracing-subscriber]
version = "0.3.22"
features = [
    "env-filter",
    "fmt",
]