[package] name = "rtx-backend" version = "1.0.0" edition = "2024" rust-version = "1.92" authors = ["RustyTorch++ Team"] license = "Apache-2.0" description = "Backend trait abstraction for RustyTorch++ - Burn-inspired compile-time dispatch" [dependencies] # Core utilities thiserror = "2" serde = { version = "1.0", features = ["derive"] } # Numeric types half = { version = "2.3", features = ["serde"] } num-traits = "0.2" [dev-dependencies] rtx-backend-cpu = { path = "../rtx-backend-cpu" } # CUDA backend tests require the CUDA toolkit; gate to x86_64 Linux so that # `cargo test --workspace` works on macOS / non-CUDA hosts. [target.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.dev-dependencies] rtx-backend-cuda = { path = "../rtx-backend-cuda", features = ["cuda"] } # Metal backend (macOS only) [target.'cfg(target_os = "macos")'.dev-dependencies] rtx-backend-metal = { path = "../rtx-backend-metal" } rtx-metal = { path = "../rtx-metal" } [features] default = [] std = [] # Feature flags for conditional test compilation cuda = [] metal = [] [lib] name = "rtx_backend" path = "src/lib.rs" [lints] workspace = true