Files
rustytorch/demos/rtx-image-classifier-demo/Cargo.toml
T
Omar Sobh 16161bb9df deps: align all 56 per-crate Cargo.toml files to thiserror v2
The workspace root was upgraded to thiserror = "2" in an earlier commit,
but 56 per-crate Cargo.toml files still independently declared "1.0".
These crates do not use workspace.dependencies inheritance for thiserror.
All updated to thiserror = "2" for complete fleet alignment.

Includes: rtx-backend, rtx-tensor, rtx-losses, rtx-backend-cuda/rocm/metal,
all training crates (rtx-auto, rtx-rl, rtx-distributed, rtx-federated, etc.),
specialized crates (rtx-science, rtx-platform, rtx-nmf, rtx-neuro-*),
production crates (rtx-streaming, rtx-serving-api), and all demo crates.

cargo check --workspace: PASSES.
2026-04-26 11:45:14 -07:00

40 lines
1.1 KiB
TOML

[package]
name = "rtx-image-classifier-demo"
version = "1.0.0"
edition = "2024"
rust-version = "1.92"
description = "Image classifier demo for RustyTorch++ - real-time CNN inference"
authors = ["RustyTorch Team"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rustytorch/rustytorch"
[dependencies]
image-classifier-shared = { path = "../image-classifier-shared" }
rtx-vision = { workspace = true }
rtx-tensor = { workspace = true }
rtx-backend = { workspace = true }
rtx-backend-cpu = { workspace = true }
# GPU backends (optional)
rtx-backend-cuda = { path = "../../crates/core/rtx-backend-cuda", optional = true }
rtx-backend-metal = { workspace = true, optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "2"
tracing = "0.1"
base64 = "0.22"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"] }
[features]
default = []
cuda = ["dep:rtx-backend-cuda"]
metal = ["dep:rtx-backend-metal"]
gpu = ["cuda", "metal"]
[dev-dependencies]
tempfile = "3.10"
[lints]
workspace = true