blob: b5ea58e8ac14196fee02e12844a94aac5412fde8 [file] [log] [blame] [edit]
[package]
name = "petgraph"
version = "0.8.3"
readme = "README.md"
license = "MIT OR Apache-2.0"
authors = { workspace = true }
description = "Graph data structure library. Provides graph types and graph algorithms."
documentation = "https://docs.rs/petgraph/"
repository = "https://github.com/petgraph/petgraph"
keywords = ["data-structure", "graph", "unionfind", "graph-algorithms"]
categories = ["data-structures"]
rust-version = { workspace = true }
edition = { workspace = true }
[package.metadata.docs.rs]
features = ["rayon", "serde-1", "quickcheck"]
[package.metadata.release]
no-dev-version = true
[workspace.package]
rust-version = "1.64"
edition = "2021"
authors = ["bluss", "mitchmindtree"]
[workspace]
members = [".", "serialization-tests"]
[lib]
bench = false
name = "petgraph"
[profile.release]
[profile.bench]
debug = true
[dependencies]
fixedbitset = { version = "0.5.7", default-features = false }
indexmap = { version = "2.5.0", default-features = false }
hashbrown = { version = "^0.15.0", default-features = false, features = ["default-hasher", "inline-more"] }
quickcheck = { optional = true, version = "0.8", default-features = false }
serde = { version = "1.0", default-features = false, optional = true }
serde_derive = { version = "1.0", default-features = false, optional = true }
rayon = { version = "1.5.3", optional = true }
dot-parser = { version = "0.5.1", optional = true }
dot-parser-macros = { version = "0.5.1", optional = true }
[dev-dependencies]
bincode = "1.3.3"
defmac = "0.2.1"
itertools = { version = "0.12.1", default-features = false }
odds = { version = "0.4.0" }
rand = "0.5.5"
ahash = "0.7.2"
fxhash = "0.2.1"
[features]
rayon = ["std", "dep:rayon", "indexmap/rayon", "hashbrown/rayon"]
dot_parser = ["std", "dep:dot-parser", "dep:dot-parser-macros"]
# feature flags for testing use only
all = [
"unstable",
"quickcheck",
"matrix_graph",
"stable_graph",
"graphmap",
"rayon",
"dot_parser",
]
default = ["std", "graphmap", "stable_graph", "matrix_graph"]
generate = [] # For unstable features
graphmap = []
matrix_graph = []
quickcheck = ["std", "dep:quickcheck", "graphmap", "stable_graph"]
serde-1 = ["serde", "serde_derive"]
stable_graph = ["serde?/alloc"]
unstable = ["generate"]
std = ["indexmap/std"]
[lints.clippy]
alloc_instead_of_core = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
[package.metadata.cargo-semver-checks.lints]
# Lint temporarily disabled, as this bug is causing false positives:
# https://github.com/obi1kenobi/cargo-semver-checks/issues/1200
#
# TODO: re-enable once the bug is fixed
trait_newly_sealed = "allow"