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 wheneverrusttype
is added without
somewhere in the dependency tree.default-features = false - 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
moduleAffects
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?