ultralytics-inference 0.0.21

Ultralytics YOLO inference library and CLI for Rust
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.89"
name = "ultralytics-inference"
version = "0.0.21"
authors = [
    "Glenn Jocher <glenn.jocher@ultralytics.com>",
    "Onuralp Sezer <onuralp@ultralytics.com>",
]
build = false
include = [
    "/Cargo.toml",
    "/Cargo.lock",
    "/LICENSE",
    "/README.md",
    "/src/**/*.rs",
    "/tests/**/*.rs",
    "/docs/**/*.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ultralytics YOLO inference library and CLI for Rust"
homepage = "https://www.ultralytics.com"
documentation = "https://docs.rs/ultralytics-inference"
readme = "README.md"
keywords = [
    "yolo",
    "ultralytics",
    "inference",
    "computer-vision",
    "ml",
]
categories = [
    "computer-vision",
    "science",
    "command-line-interface",
]
license = "AGPL-3.0"
repository = "https://github.com/ultralytics/inference"

[package.metadata.docs.rs]
features = [
    "annotate",
    "visualize",
    "video",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
acl = ["ort/acl"]
all = [
    "annotate",
    "visualize",
    "video",
]
amd = [
    "rocm",
    "migraphx",
]
annotate = [
    "imageproc",
    "ab_glyph",
]
armnn = ["ort/armnn"]
azure = ["ort/azure"]
cann = ["ort/cann"]
coreml = ["ort/coreml"]
cuda = ["ort/cuda"]
cuda-preprocess = [
    "cuda",
    "tensorrt",
    "dep:cudarc",
]
default = [
    "annotate",
    "visualize",
]
directml = ["ort/directml"]
intel = [
    "openvino",
    "onednn",
]
migraphx = ["ort/migraphx"]
mobile = [
    "nnapi",
    "coreml",
    "qnn",
]
nnapi = ["ort/nnapi"]
nvidia = [
    "cuda",
    "tensorrt",
]
onednn = ["ort/onednn"]
openvino = ["ort/openvino"]
qnn = ["ort/qnn"]
rknpu = ["ort/rknpu"]
rocm = ["ort/rocm"]
tensorrt = ["ort/tensorrt"]
tvm = ["ort/tvm"]
video = ["video-rs"]
visualize = ["minifb"]
webgpu = ["ort/webgpu"]
xnnpack = ["ort/xnnpack"]

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

[[bin]]
name = "ultralytics-inference"
path = "src/main.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[dependencies.ab_glyph]
version = "^0.2"
optional = true

[dependencies.bytemuck]
version = "^1.25"
features = ["derive"]

[dependencies.colored]
version = "^3.1.1"

[dependencies.cudarc]
version = "0.19.7"
features = [
    "driver",
    "nvrtc",
    "dynamic-loading",
    "cuda-version-from-build-system",
]
optional = true
default-features = false

[dependencies.fast_image_resize]
version = "^6.0"
features = ["image"]

[dependencies.half]
version = "^2.7"
features = ["num-traits"]

[dependencies.image]
version = "^0.25"

[dependencies.imageproc]
version = "^0.27"
optional = true

[dependencies.jpeg-decoder]
version = "^0.3"

[dependencies.lru]
version = "^0.18"

[dependencies.minifb]
version = "^0.28.0"
optional = true

[dependencies.ndarray]
version = "^0.17"

[dependencies.video-rs]
version = ">=0.10.5, <0.12"
features = ["ndarray"]
optional = true

[dependencies.wide]
version = "^1.5"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.tempfile]
version = "3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "^4.6.1"
features = ["derive"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dirs]
version = "^6.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.fast_image_resize]
version = "^6.0"
features = [
    "image",
    "rayon",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ndarray]
version = "^0.17"
features = ["rayon"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ort]
version = "2.0.0-rc.12"
features = [
    "std",
    "ndarray",
    "download-binaries",
    "copy-dylibs",
    "half",
    "tls-native",
    "num-complex",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "^1.12"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ureq]
version = "^3.3.0"

[lints.clippy]
all = "warn"
cargo = "warn"
nursery = "warn"
pedantic = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"

[profile.dev]
opt-level = 0
split-debuginfo = "unpacked"

[profile.dev.package."*"]
opt-level = 3

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true