[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"]
test = false
[dependencies]
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py38"] }
numpy = "0.27"
torsh-core = { workspace = true }
torsh-tensor = { workspace = true }
torsh-nn = { workspace = true }
torsh-optim = { workspace = true }
scirs2-core = { workspace = true }
thiserror = "2.0"
anyhow = "1.0"
parking_lot = "0.12"
[features]
default = []
extension-module = ["pyo3/extension-module"]
[package.metadata.maturin]
python-source = "python"
module-name = "torsh"
bindings = "pyo3"