Cargo Features

RTen has no features set by default.

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

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

Enables avx512 of rten-simd and rten-vecmath

Affects x86_64::Avx512Kernel

mmap = memmap2

Enable loading models using memory mapping

wasm_api

Generate WebAssembly API using wasm-bindgen.

random = fastrand, fastrand-contrib

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?
fastrand-contrib random?
memmap2 mmap?