Files
rustytorch/crates/specialized/rtx-nmf/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

62 lines
1.4 KiB
TOML

[package]
name = "rtx-nmf"
version = "1.0.0"
edition.workspace = true
rust-version = "1.92"
authors = ["RustyTorch Team"]
license = "MIT OR Apache-2.0"
description = "GPU-accelerated Non-negative Matrix Factorization (NMF) for RustyTorch++"
repository = "https://github.com/rustytorch/rustytorch"
[dependencies]
# Core RTX dependencies
rtx-tensor = { path = "../../core/rtx-tensor" }
anyhow = "1.0"
thiserror = "2"
tracing = "0.1"
# GPU acceleration - using workspace cudarc 0.18.1
cudarc = { workspace = true, optional = true }
# Numeric computing
nalgebra = "0.32"
rand = "0.8"
# Serialization for model persistence
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Image processing for color unmixing
image = "0.25"
base64 = "0.21"
# Metal GPU acceleration (macOS only)
[target.'cfg(target_os = "macos")'.dependencies]
rtx-metal = { workspace = true, optional = true }
[dev-dependencies]
# Testing framework
criterion = { version = "0.5", features = ["html_reports"] }
approx = "0.5"
tempfile = "3.8"
[features]
# No default GPU - select cuda or metal explicitly
default = []
cuda = ["cudarc", "rtx-tensor/cuda"]
metal = ["rtx-metal", "rtx-tensor/metal"]
metal4 = ["metal"] # Enable Metal 4 features (requires macOS 26+)
[lib]
name = "rtx_nmf"
path = "src/lib.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[package.metadata.docs.rs]
features = ["cuda"]
[lints]
workspace = true