Cargo Features

[dependencies]
rusttype = { version = "0.9.3", default-features = false, features = ["std", "libm-math", "has-atomics", "gpu_cache"] }
default = std

The std feature is set by default whenever rusttype is added without default-features = false somewhere in the dependency tree.

std default gpu_cache? = has-atomics

Activates usage of std.

Enables ab_glyph_rasterizer and owned_ttf_parser ^0.15

libm-math = libm

Uses libm when not using std. This needs to be active in that case.

Enables libm of ab_glyph_rasterizer

has-atomics std

Some targets don't have atomics, this activates usage of Arc<T> instead of Rc<T>.

gpu_cache = crossbeam-deque, crossbeam-utils, linked-hash-map, num_cpus, rustc-hash, std

Adds gpu_cache module

Affects rusttype::gpu_cache

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.

libm libm-math?
linked-hash-map gpu_cache?
rustc-hash gpu_cache?

Enables rustc-hash ^1

crossbeam-deque not wasm32 gpu_cache?
crossbeam-utils not wasm32 gpu_cache?
num_cpus not wasm32 gpu_cache?