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.
47 lines
905 B
TOML
47 lines
905 B
TOML
[package]
|
|
name = "rtx-losses"
|
|
version = "1.0.0"
|
|
edition.workspace = true
|
|
rust-version = "1.92"
|
|
authors = ["RustyTorch++ Team"]
|
|
license = "Apache-2.0"
|
|
description = "Comprehensive loss functions for deep learning with automatic differentiation support"
|
|
|
|
[dependencies]
|
|
# Core tensor operations
|
|
# rtx-tensor = { path = "../rtx-tensor" } # Disabled due to compilation issues
|
|
# rtx-autograd = { path = "../rtx-autograd" } # Disabled due to compilation issues
|
|
|
|
# Core utilities
|
|
anyhow = "1.0"
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
|
|
# Numeric computing
|
|
ndarray = "0.15"
|
|
|
|
# Random number generation
|
|
rand = "0.8"
|
|
|
|
[dev-dependencies]
|
|
# Testing framework
|
|
proptest = "1.4"
|
|
criterion = "0.5"
|
|
tokio = "1.35"
|
|
|
|
# Additional testing utilities
|
|
approx = "0.5"
|
|
rand = "0.8"
|
|
|
|
|
|
[features]
|
|
default = []
|
|
|
|
[lib]
|
|
name = "rtx_losses"
|
|
path = "src/lib.rs"
|
|
|
|
# [workspace] - This crate is part of the main workspace
|
|
[lints]
|
|
workspace = true
|