Cargo Features
symphonia-core has no features set by default.
[dependencies]
symphonia-core = { version = "0.5.4", features = ["opt-simd-sse", "opt-simd-avx", "opt-simd-neon", "opt-simd"] }
- opt-simd-sse opt-simd?
-
SIMD support.
- opt-simd-avx opt-simd?
-
rustfft:
On x86_64, the "avx" feature enables compilation of AVX-acclerated code.
Similarly, the "sse" feature enables compilation of SSE-accelerated code.
Enabling these improves performance if the client CPU supports AVX or SSE, while disabling them reduces compile time and binary size.
If both are enabled, RustFFT will use AVX if the CPU supports it. If not, it will check for SSE4.1.
If neither instruction set is available, it will fall back to the scalar code.
On AArch64, the "neon" feature enables compilation of Neon-accelerated code.
On wasm32, the "wasm_simd" feature enables compilation of Wasm SIMD accelerated code.
For all of the above features, on every platform other than the intended platform for the feature, these features do nothing, and RustFFT will behave like they are not set. - opt-simd-neon opt-simd?
- opt-simd = opt-simd-avx, opt-simd-neon, opt-simd-sse
-
Enable all SIMD support.
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.