[package]
name = "rie-train-v06"
version = "0.6.0"
edition = "2024"
publish = false

[lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
undocumented_unsafe_blocks = "deny"

[[bin]]
name = "rie-train-v06"
path = "main.rs"

[features]
default = []
metal = [
  "dep:burn",
  "dep:burn-autodiff",
  "dep:burn-backend",
  "dep:burn-cubecl",
  "dep:cubecl",
  "burn/metal",
  "burn/fusion",
  "burn/cubecl",
  "burn-cubecl/metal",
  "cubecl/metal",
  "candle-core/metal",
  "candle-core/accelerate",
  "dep:candle-metal-kernels",
  "dep:objc2-metal",
]
# Keep Burn/CubeCL CUDA and Candle CUDA as separate features to avoid cudarc
# fallback-dynamic-loading vs dynamic-linking feature unification conflict.
burn-cuda = [
  "dep:burn",
  "dep:burn-autodiff",
  "dep:burn-backend",
  "dep:burn-cubecl",
  "dep:cubecl",
  "burn/cuda",
  "burn/fusion",
  "burn/cubecl",
  "burn-cubecl/cuda",
  "cubecl/cuda",
]
candle-cuda = [
  "candle-core/cuda",
]

[dependencies]
burn = { version = "=0.22.1", default-features = false, features = ["std", "autodiff"], optional = true }
burn-autodiff = { version = "=0.22.1", optional = true }
burn-backend = { version = "=0.22.1", optional = true }
burn-cubecl = { version = "=0.22.1", default-features = false, features = ["std"], optional = true }
candle-core = "0.11.0"
candle-metal-kernels = { version = "0.11.0", optional = true }
candle-nn = "0.11.0"
cubecl = { version = "=0.11.4", default-features = false, features = ["std"], optional = true }
objc2-metal = { version = "0.3.2", optional = true }
rayon = "1.12.0"
safetensors = "0.8.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
