[package]
edition = "2021"
name = "torch-sys"
version = "0.23.0"
authors = ["Laurent Mazare <lmazare@gmail.com>"]
build = "build.rs"
links = "tch"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Low-level FFI bindings for the PyTorch C++ api (libtorch)."
readme = false
keywords = [
"pytorch",
"ffi",
"deep-learning",
"machine-learning",
]
categories = [
"external-ffi-bindings",
"science",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/LaurentMazare/tch-rs"
[package.metadata.docs.rs]
features = ["doc-only"]
[features]
doc-only = []
download-libtorch = [
"ureq",
"serde",
"serde_json",
]
python-extension = []
[lib]
name = "torch_sys"
path = "src/lib.rs"
[dependencies.libc]
version = "0.2.0"
[build-dependencies.anyhow]
version = "^1.0.60"
[build-dependencies.cc]
version = "1.2"
[build-dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[build-dependencies.serde_json]
version = "1.0"
optional = true
[build-dependencies.ureq]
version = "2.6"
features = ["json"]
optional = true
[build-dependencies.zip]
version = "0.6"