Cargo Features

[dependencies]
granite = { version = "1.1.1", default-features = false, features = ["alloc", "union_optimizations", "doc_cfg", "arrayvec", "smallvec", "slab", "slotmap"] }
default = alloc

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

alloc default

Enables alloc of tinyvec

tinyvec:

Provide things that utilize the alloc crate, namely TinyVec.

Affects sparse::Vec, sparse::VecDeque

union_optimizations
doc_cfg

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.

tinyvec alloc
arrayvec implicit feature

Enables arrayvec ^0.5

smallvec implicit feature

Enables smallvec

smallvec:

'Small vector' optimization: store up to a small number of items on the stack

slab implicit feature

Enables slab

slab:

Pre-allocated storage for a uniform data type

slotmap implicit feature

Enables slotmap ^0.4

slotmap:

Slotmap data structure