[package]
edition = "2024"
name = "onnx-runtime-session"
version = "0.1.0-dev.6"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Session and inference API for the ORT 2.0 runtime: intent-based SessionBuilder and sequential executor (skeleton)"
readme = false
keywords = [
"onnx",
"session",
"inference",
"runtime",
]
categories = [
"science",
"api-bindings",
]
license = "MIT"
repository = "https://github.com/justinchuby/onnx-genai"
resolver = "2"
[features]
cuda = [
"dep:onnx-runtime-ep-cuda",
"onnx-runtime-ep-cuda/cuda",
]
cuda-12060 = [
"cudarc/cuda-12060",
"onnx-runtime-ep-cuda?/cuda-12060",
]
cuda-12080 = [
"cudarc/cuda-12080",
"onnx-runtime-ep-cuda?/cuda-12080",
]
cuda-12090 = [
"cudarc/cuda-12090",
"onnx-runtime-ep-cuda?/cuda-12090",
]
cuda-13000 = [
"cudarc/cuda-13000",
"onnx-runtime-ep-cuda?/cuda-13000",
]
default = ["cuda-13000"]
gpu-tests = [
"cuda",
"onnx-runtime-ep-cuda/gpu-tests",
]
mlas = ["onnx-runtime-ep-cpu/mlas"]
[lib]
name = "onnx_runtime_session"
path = "src/lib.rs"
[[example]]
name = "conformance_runner"
path = "examples/conformance_runner.rs"
[[test]]
name = "batch_vision_crash"
path = "tests/batch_vision_crash.rs"
[[test]]
name = "bert_toy_conformance"
path = "tests/bert_toy_conformance.rs"
[[test]]
name = "bert_toy_optimized_parity"
path = "tests/bert_toy_optimized_parity.rs"
[[test]]
name = "control_flow"
path = "tests/control_flow.rs"
[[test]]
name = "cuda_control_flow_safety"
path = "tests/cuda_control_flow_safety.rs"
[[test]]
name = "cuda_prefetch_war"
path = "tests/cuda_prefetch_war.rs"
[[test]]
name = "cuda_scan_inline_single_trip"
path = "tests/cuda_scan_inline_single_trip.rs"
[[test]]
name = "epcontext"
path = "tests/epcontext.rs"
[[test]]
name = "executor"
path = "tests/executor.rs"
[[test]]
name = "fused_attention_parity"
path = "tests/fused_attention_parity.rs"
[[test]]
name = "fused_gemm_parity"
path = "tests/fused_gemm_parity.rs"
[[test]]
name = "gelu_parity"
path = "tests/gelu_parity.rs"
[[test]]
name = "graph_perf_audit"
path = "tests/graph_perf_audit.rs"
[[test]]
name = "hetero_cuda_gpu"
path = "tests/hetero_cuda_gpu.rs"
[[test]]
name = "model_local_functions"
path = "tests/model_local_functions.rs"
[[test]]
name = "model_metadata"
path = "tests/model_metadata.rs"
[[test]]
name = "perch_dft"
path = "tests/perch_dft.rs"
[[test]]
name = "prefill_fusion_audit"
path = "tests/prefill_fusion_audit.rs"
[[test]]
name = "projection_fusion"
path = "tests/projection_fusion.rs"
[[test]]
name = "qmoe_route_residency_gpu"
path = "tests/qmoe_route_residency_gpu.rs"
[[test]]
name = "sequence_ops"
path = "tests/sequence_ops.rs"
[[test]]
name = "sibling_projection_merge_parity"
path = "tests/sibling_projection_merge_parity.rs"
[[test]]
name = "slice_view"
path = "tests/slice_view.rs"
[[test]]
name = "view_output_materialization"
path = "tests/view_output_materialization.rs"
[dependencies.half]
version = "2"
[dependencies.onnx-genai-runtime-config]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-ep-api]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-ep-cpu]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-ep-cuda]
version = "=0.1.0-dev.6"
optional = true
default-features = false
[dependencies.onnx-runtime-ir]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-loader]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-memory]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-memory-governor]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-optimizer]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-shape-inference]
version = "=0.1.0-dev.6"
[dependencies.onnx-runtime-tracer]
version = "=0.1.0-dev.6"
[dependencies.rayon]
version = "1"
[dependencies.smallvec]
version = "1"
[dependencies.thiserror]
version = "2"
[dev-dependencies.cudarc]
version = "0.19"
features = [
"std",
"driver",
"nvrtc",
"dynamic-loading",
]
default-features = false
[dev-dependencies.onnx-runtime-cuda-memory]
version = "=0.1.0-dev.6"
default-features = false
[dev-dependencies.prost]
version = "0.13"
[lints.clippy]
chunks_exact_to_as_chunks = "allow"
uninlined_format_args = "warn"
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"