Cargo Features

[dependencies]
surya = { version = "0.4.0", default-features = false, features = ["metal", "accelerate", "mkl", "cli"] }
default = cli

The cli feature is set by default whenever surya is added without default-features = false somewhere in the dependency tree.

metal

Enables metal of candle-core ^0.3.2 and candle-nn ^0.3.2

accelerate = accelerate-src

Enables accelerate of candle-core ^0.3.2 and candle-nn ^0.3.2

mkl = intel-mkl-src

Enables mkl of candle-core ^0.3.2 and candle-nn ^0.3.2

cli default = anyhow, clap

Required by the binary

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.

anyhow cli
clap cli
accelerate-src accelerate?
intel-mkl-src mkl?