[package]
edition = "2021"
rust-version = "1.76"
name = "torsh-python"
version = "0.1.0-beta.1"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Python bindings for ToRSh - PyTorch-compatible deep learning in Rust"
homepage = "https://github.com/cool-japan/torsh/"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/cool-japan/torsh/"
[package.metadata.maturin]
python-source = "python"
module-name = "torsh"
bindings = "pyo3"
[features]
default = []
extension-module = ["pyo3/extension-module"]
[lib]
name = "torsh_python"
crate-type = ["cdylib"]
path = "src/lib.rs"
test = false
[[test]]
name = "test_device"
path = "tests/test_device.rs"
[[test]]
name = "test_dtype"
path = "tests/test_dtype.rs"
[[test]]
name = "test_error"
path = "tests/test_error.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.numpy]
version = "0.27"
[dependencies.parking_lot]
version = "0.12"
[dependencies.pyo3]
version = "0.27"
features = [
"extension-module",
"abi3-py38",
]
[dependencies.scirs2-core]
version = "0.1.3"
features = [
"simd",
"parallel",
"memory_management",
"serialization",
"oxicode",
"oxiblas-blas",
"oxiblas-lapack",
"oxiblas-ndarray",
"validation",
"types",
"random",
]
[dependencies.thiserror]
version = "2.0"
[dependencies.torsh-core]
version = "0.1.0-beta.1"
[dependencies.torsh-nn]
version = "0.1.0-beta.1"
[dependencies.torsh-optim]
version = "0.1.0-beta.1"
[dependencies.torsh-tensor]
version = "0.1.0-beta.1"
[lints.clippy]
expect_used = "allow"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "allow"
similar_names = "allow"
too_many_lines = "allow"
unwrap_used = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "allow"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
dead_code = "warn"
unreachable_code = "warn"
unsafe_code = "allow"
unused_imports = "warn"
unused_variables = "warn"