Cargo Features
[dependencies]
sassy = { version = "0.2.1", default-features = false, features = ["cli", "diagnostics", "avx512", "python", "c", "scalar"] }
- default = cli, diagnostics
-
These default features are set whenever
sassyis added withoutsomewhere in the dependency tree.default-features = false - cli default = clap, colored, env_logger, needletail, num_cpus
-
CLI binary and pretty-printing support
Affects
sassy::pretty_print…Required by the binary
- diagnostics default = rand
-
Diagnostic functions (test_throughput, test_cpu_features) that depend on rand
Affects
sassy::test_cpu_features,sassy::test_throughput… - avx512
- python = pyo3
- c
- scalar
-
Build the library with scalar types, with reduced performance.
Without this, it requires either AVX2 or NEON to be available at compile time.Enables scalar of ensure_simd
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.
- clap cli
-
Enables clap
Optional: CLI binary dependencies
- needletail cli
-
Enables needletail ^0.6.3
- env_logger cli
- num_cpus cli
- colored cli
- rand diagnostics
-
Enables rand ^0.9.0
Optional: diagnostic functions (test_throughput, test_cpu_features)
- pyo3 python?
-
Enables pyo3 ^0.27
Optional: Python bindings