Cargo Features

[dependencies]
flax = { version = "0.7.1", default-features = false, features = ["std", "serde", "derive", "flume", "rayon", "tokio", "tracing", "puffin"] }
default = flume, rayon, std

These default features are set whenever flax is added without default-features = false somewhere in the dependency tree.

std default

Enables std of anyhow, use_alloc and use_std of itertools

serde = erased-serde

Enables serde

Affects flax::serialize

derive = flax-derive

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.

flax-derive derive?
flume default
rayon default

Affects system::ParForEach

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications

tracing implicit feature

Enables tracing

tracing:

Application-level tracing for Rust

erased-serde serde?

Enables erased-serde ^0.3.31

puffin implicit feature

Enables puffin

puffin:

Simple instrumentation profiler for games