Files
rustytorch/crates/models/rtx-nlg/Cargo.toml
T
osobhandClaude Opus 4.8 63776aa0f2
CI / Build (macos-latest) (push) Failing after 29s
CI / Format Check (push) Failing after 12s
CI / Clippy Check (push) Failing after 1m21s
CI / Build (ubuntu-latest) (push) Failing after 1m22s
CI / Test (macos-latest) (push) Has been skipped
CI / Test (ubuntu-latest) (push) Has been skipped
CI / Python Bindings (maturin) (macos-latest) (push) Has been skipped
CI / Python Bindings (maturin) (ubuntu-latest) (push) Has been skipped
CI / WASM Build + Size Check (push) Has been skipped
CI / Distributed Training Tests (push) Has been skipped
Documentation / Build User Guide (push) Successful in 10s
CI / Build CPU-Only (Explicit) (push) Failing after 1m28s
CI / CI Success (push) Failing after 0s
Documentation / Build API Documentation (push) Failing after 43s
Performance Benchmarks / Run Benchmarks (push) Successful in 2m14s
fix(rtx-backend): gate CUDA dev-dep to x86_64-linux so cargo test works on macOS
rtx-backend's only build-graph CUDA pull was a [dev-dependencies] entry
(rtx-backend-cuda with features=[cuda]) compiled unconditionally, so
cargo test --workspace failed on macOS/non-CUDA hosts trying to build cudarc.
Gate it to x86_64 Linux (where the CUDA toolkit lives); cargo build was unaffected.

Also drop the no-op cuda from rtx-nlg default features (empty placeholder that
misleadingly implied CUDA-by-default).

Audit: 121/126 workspace crates already gate CUDA correctly (optional + non-default).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-27 09:07:14 -07:00

74 lines
1.9 KiB
TOML

[package]
name = "rtx-nlg"
version = "1.0.0"
edition.workspace = true
rust-version = "1.92"
description = "Advanced Natural Language Generation for RTX - Production-ready text generation with state-of-the-art algorithms"
license = "MIT OR Apache-2.0"
keywords = ["nlp", "nlg", "text-generation", "transformers", "machine-learning"]
categories = ["science", "text-processing"]
authors = ["RTX Team"]
[dependencies]
rtx-tensor = { path = "../../core/rtx-tensor" }
rtx-transformers = { path = "../../training/rtx-transformers" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "2"
anyhow = "1.0"
rayon = "1.8"
tokio = { version = "1.0", features = ["full"] }
futures = "0.3"
dashmap = "5.5"
indexmap = "2.0"
regex = "1.10"
unicode-segmentation = "1.10"
rand = "0.8"
rand_distr = "0.4"
ndarray = "0.15"
# candle-core and candle-nn disabled - incompatible with Rust 2024 edition due to `gen` keyword
# candle-core = { version = "0.3", default-features = false }
# candle-nn = { version = "0.3", default-features = false }
# tch = "0.13" # Removed: PyTorch dependency - using pure Rust implementation
tracing = "0.1"
tracing-subscriber = "0.3"
metrics = "0.22"
lru = "0.12"
num_cpus = "1.16"
chrono = { version = "0.4", features = ["serde"] }
async-trait = "0.1"
tokio-stream = "0.1"
uuid = { version = "1.6", features = ["v4"] }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
proptest = "1.4"
tempfile = "3.8"
env_logger = "0.10"
[[bench]]
name = "generation_benchmarks"
harness = false
[[bench]]
name = "translation_benchmarks"
harness = false
[[bench]]
name = "summarization_benchmarks"
harness = false
[lib]
name = "rtx_nlg"
path = "src/lib.rs"
[features]
default = ["production"] # cuda is opt-in, not default (it is currently a no-op placeholder)
production = []
cuda = []
metal = []
distributed = []
streaming = []
[lints]
workspace = true