Cargo Features
[dependencies]
petgraph = { version = "0.8.3", default-features = false, features = ["rayon", "dot_parser", "all", "generate", "std", "graphmap", "matrix_graph", "quickcheck", "serde-1", "stable_graph", "unstable"] }
- rayon all? = std
-
Enables rayon, rayon of hashbrown ^0.15.0 and indexmap
Affects
johnson::parallel_johnson,page_rank::parallel_page_rank,graphmap::ParNodes,graphmap::ParAllEdges,graphmap::ParAllEdgesMut… - dot_parser all? = std
-
Enables dot-parser ^0.5.1 and dot-parser-macros ^0.5.1
Affects
dot::dot_parser… - all = dot_parser, graphmap, matrix_graph, quickcheck, rayon, stable_graph, unstable
-
feature flags for testing use only
- default = graphmap, matrix_graph, stable_graph, std
-
These default features are set whenever
petgraphis added withoutsomewhere in the dependency tree.default-features = false - generate unstable?
-
For unstable features
Affects
petgraph::generate… - std default dot_parser? quickcheck? rayon?
- graphmap default all? quickcheck?
-
Affects
petgraph::graphmap… - matrix_graph default all?
-
Affects
petgraph::matrix_graph… - quickcheck all? = graphmap, stable_graph, std
-
Enables quickcheck ^0.8
- serde-1 = serde, serde_derive
- stable_graph default all? quickcheck?
-
Enables alloc of optional serde
serde:
Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.
Affects
algo::steiner_tree,steiner_tree::steiner_tree,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.