torsh-python 0.1.0-alpha.2

Python bindings for ToRSh - PyTorch-compatible deep learning in Rust
Documentation
[package]
name = "torsh-python"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
rust-version.workspace = true
description = "Python bindings for ToRSh - PyTorch-compatible deep learning in Rust"

[lints]
workspace = true

[lib]
name = "torsh_python"
crate-type = ["cdylib"]
# Disable Rust test harness for cdylib - use pytest instead
test = false

[dependencies]
# PyO3 for Python bindings
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py38"] }
numpy = "0.27"

# ToRSh crates
torsh-core = { workspace = true }
torsh-tensor = { workspace = true }
torsh-nn = { workspace = true }
torsh-optim = { workspace = true }
# torsh-data = { workspace = true }  # Temporarily disabled due to compilation errors
# torsh-autograd = { workspace = true }  # Temporarily disabled due to scirs2 API incompatibilities
# torsh-distributed = { workspace = true }  # Temporarily disabled due to compilation errors

# ✅ SciRS2 POLICY: Use scirs2-core for all scientific computing needs
scirs2-core = { workspace = true }

# Error handling
thiserror = "2.0"
anyhow = "1.0"

# Utilities
parking_lot = "0.12"

[features]
default = []
extension-module = ["pyo3/extension-module"]

[package.metadata.maturin]
python-source = "python"
module-name = "torsh"
bindings = "pyo3"