Cargo Features

[dependencies]
burn-import = { version = "0.13.1", default-features = false, features = ["onnx", "pytorch"] }
default = onnx, pytorch

These default features are set whenever burn-import is added without default-features = false somewhere in the dependency tree.

onnx default

Affects burn-import::onnx, burn-import::burn

pytorch default = thiserror, zip

Enables record-item-custom-serde of burn

burn:

Records

Affects burn-import::pytorch

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

thiserror pytorch
zip pytorch

Enables zip ^0.6.6