native-onnx 0.2.0

ONNX inference with system CUDA and TensorRT, reusable buffers, and explicit backend selection
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.88"
name = "native-onnx"
version = "0.2.0"
build = "build.rs"
include = [
    "/src/**",
    "/build.rs",
    "/README.md",
    "/LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ONNX inference with system CUDA and TensorRT, reusable buffers, and explicit backend selection"
documentation = "https://docs.rs/native-onnx"
readme = "README.md"
keywords = [
    "onnx",
    "inference",
    "tensorrt",
    "cuda",
    "machine-learning",
]
categories = [
    "science",
    "api-bindings",
    "hardware-support",
]
license = "Apache-2.0"
repository = "https://github.com/Near-ring/ONNX-TensorRT-Runtime"

[package.metadata.docs.rs]
all-features = true
targets = [
    "x86_64-unknown-linux-gnu",
    "aarch64-apple-darwin",
    "x86_64-pc-windows-msvc",
]

[features]
default = []
openvino = ["ort/openvino"]

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

[dependencies.anyhow]
version = "1.0.104"

[dependencies.half]
version = "2.7.1"

[dependencies.libloading]
version = "0.9.0"

[dependencies.onnx-rs]
version = "0.1.2"

[dependencies.ort]
version = "=2.0.0-rc.13"
features = [
    "std",
    "load-dynamic",
    "tensorrt",
    "cuda",
    "api-27",
    "half",
]
default-features = false

[dependencies.serde_json]
version = "1.0.151"

[dependencies.tempfile]
version = "3.27.0"

[dev-dependencies.static_assertions]
version = "1.1.0"

[target.'cfg(target_os = "macos")'.dependencies.ort]
version = "=2.0.0-rc.13"
features = ["coreml"]
default-features = false