Cargo Features
[dependencies]
petgraph = { version = "0.6.5", default-features = false, features = ["rayon", "all", "generate", "graphmap", "matrix_graph", "serde-1", "stable_graph", "unstable"] }
- rayon all?
-
Enables rayon, rayon of indexmap
Affects
page_rank::parallel_page_rank
,graphmap::ParNodes
,graphmap::ParAllEdges
,graphmap::ParAllEdgesMut
… - all = graphmap, matrix_graph, quickcheck, rayon, stable_graph, unstable
-
feature flags for testing use only
- default = graphmap, matrix_graph, stable_graph
-
These default features are set whenever
petgraph
is added without
somewhere in the dependency tree.default-features = false - generate unstable?
-
For unstable features
Affects
petgraph::generate
… - graphmap default all?
-
Affects
petgraph::graphmap
… - matrix_graph default all?
-
Affects
petgraph::matrix_graph
… - serde-1 = serde, serde_derive
- stable_graph default all?
-
Affects
graph_impl::stable_graph
… - unstable all? = generate
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.
- quickcheck all?
-
Enables quickcheck ^0.8
- serde serde-1?
- serde_derive serde-1?