Cargo Features

[dependencies]
petgraph = { version = "0.6.4", default-features = false, features = ["all", "generate", "graphmap", "matrix_graph", "serde-1", "stable_graph", "unstable"] }
all = graphmap, matrix_graph, quickcheck, 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 default-features = false somewhere in the dependency tree.

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?