Cargo Features

torch-sys has no features set by default.

[dependencies]
torch-sys = { version = "0.15.0", features = ["download-libtorch", "doc-only", "python-extension"] }
download-libtorch = serde, serde_json, ureq
doc-only
python-extension

Affects torch-sys::python

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

ureq build download-libtorch?
serde_json build download-libtorch?
serde build download-libtorch?