Cargo Features

RTen has no features set by default.

[dependencies]
rten = { version = "0.8.0", features = ["avx512", "wasm_api", "random"] }
avx512

Use AVX-512 instructions if available. Requires nightly Rust for AVX-512 intrinsics.

Enables avx512 of rten-vecmath

Affects x86_64::Avx512Kernel

wasm_api

Generate WebAssembly API using wasm-bindgen.

random = fastrand

Enable operators that generate random numbers.

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.

fastrand random?