Files
rustytorch/demos/rtx-mre/Cargo.toml
T
osobhandClaude Opus 4.8 70da8215a2
CI / Format Check (push) Failing after 12s
CI / Build CPU-Only (Explicit) (push) Failing after 1m46s
CI / WASM Build + Size Check (push) Has been skipped
CI / Distributed Training Tests (push) Has been skipped
Documentation / Build API Documentation (push) Failing after 1m35s
CI / CI Success (push) Failing after 0s
CI / Build (macos-latest) (push) Failing after 1m12s
CI / Clippy Check (push) Failing after 1m11s
Documentation / Build User Guide (push) Successful in 16s
CI / Build (ubuntu-latest) (push) Failing after 1m48s
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
Performance Benchmarks / Run Benchmarks (push) Successful in 4m28s
fix(demos): drop openblas/metal from default features (CPU-only default, backends opt-in)
demos/{rtx-mre,rtx-bioheat,rtx-hemodynamics} defaulted to [cpu, openblas, metal],
which broke cargo build --workspace on BOTH platforms:
- openblas: no system lib on macOS + buggy on arm64 (sgemm returns zeros, per rtx-tensor note)
- metal: objc2 deps are macOS-only, so enabling it on Linux fails to resolve

Default to cpu only; openblas/metal/accelerate remain opt-in per platform.

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

38 lines
1.0 KiB
TOML

[package]
name = "rtx-mre"
version = "1.0.0"
edition = "2024"
rust-version = "1.92"
description = "MRE elastography inverse solver using Physics-Informed Neural Networks"
license = "MIT OR Apache-2.0"
readme = "README.md"
[dependencies]
# RustyTorch++ core crates
rtx-tensor = { path = "../../crates/core/rtx-tensor", default-features = false }
rtx-nn = { path = "../../crates/core/rtx-nn", default-features = false }
# Shared types
mre-shared = { path = "../mre-shared" }
# External dependencies
anyhow = "1.0"
thiserror = "2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
cudarc = { version = "0.18.1", optional = true }
rand = "0.8"
[dev-dependencies]
approx = "0.5"
[features]
default = ["cpu"] # openblas/metal are opt-in: openblas breaks arm64 macOS (sgemm zeros) + needs system lib; metal is macOS-only and breaks Linux
cuda = ["rtx-tensor/cuda", "rtx-nn/cuda", "cudarc"]
metal = ["rtx-tensor/metal", "rtx-nn/metal"]
cpu = ["rtx-tensor/cpu"]
openblas = ["rtx-tensor/openblas"]
[lints]
workspace = true