Cargo Features

[dependencies]
mapgraph = { version = "0.12.0", default-features = false, features = ["std", "alloc", "algorithms", "serde", "rayon", "slotmap", "indexmap"] }
default = algorithms, alloc, slotmap, std

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

std default = alloc

Enables std of optional indexmap and optional slotmap

Affects aliases::HashNodeMap, aliases::HashNodeGraph, aliases::FrozenHashNodeGraph, aliases::SparseSecondarySlotMap, aliases::SparseSecondarySlotKeySet, aliases::HashSlotMapGraph, aliases::FrozenHashSlotMapGraph

alloc default std

Affects algo::dom, algo::scc, aliases::BTreeNodeMap, aliases::BTreeNodeGraph, aliases::FrozenBTreeNodeGraph, aliases::BTreeSlotMapGraph, aliases::FrozenBTreeSlotMapGraph, mapgraph::aliases

algorithms default

Affects mapgraph::algo

serde

Enables serde, serde of optional indexmap, serde of optional slotmap

rayon

Enables rayon, rayon of optional indexmap

Affects map::ParIterMap

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.

slotmap default

Affects aliases::SlotNodeMap, aliases::SlotEdgeMap, aliases::HopSlotNodeMap, aliases::HopSlotEdgeMap, aliases::DenseSlotNodeMap, aliases::DenseSlotEdgeMap, aliases::SecondarySlotMap, aliases::SecondarySlotKeySet, aliases::SlotMapGraph, aliases::FrozenSlotMapGraph, map::slotmap, aliases::SparseSecondarySlotMap, aliases::SparseSecondarySlotKeySet, aliases::BTreeSlotMapGraph, aliases::FrozenBTreeSlotMapGraph, aliases::HashSlotMapGraph, aliases::FrozenHashSlotMapGraph, mapgraph::aliases

indexmap implicit feature

Enables indexmap

indexmap:

A hash table with consistent order and fast iteration