[package]
edition = "2024"
name = "panicgraph"
version = "0.2.1"
authors = ["Khashayar Fereidani <info@fereidani.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reports which functions can panic, why, and through what call path."
readme = "README.md"
keywords = [
"panic",
"static-analysis",
"mir",
"no-panic",
"flamegraph",
]
categories = [
"development-tools",
"development-tools::debugging",
"development-tools::testing",
"command-line-utilities",
"visualization",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fereidani/panicgraph"
[features]
default = [
"serve",
"svg",
]
serve = ["dep:flate2"]
svg = []
[lib]
name = "panicgraph"
path = "src/lib.rs"
[[bin]]
name = "panicgraph"
path = "src/main.rs"
[[bin]]
name = "panicgraph-driver"
path = "src/driver/main.rs"
[[test]]
name = "args"
path = "tests/args.rs"
[[test]]
name = "canary"
path = "tests/canary.rs"
[[test]]
name = "category"
path = "tests/category.rs"
[[test]]
name = "check"
path = "tests/check.rs"
[[test]]
name = "flame"
path = "tests/flame.rs"
[[test]]
name = "graph"
path = "tests/graph.rs"
[[test]]
name = "known"
path = "tests/known.rs"
[[test]]
name = "listen"
path = "tests/listen.rs"
[[test]]
name = "nightly"
path = "tests/nightly.rs"
[[test]]
name = "palette"
path = "tests/palette.rs"
[[test]]
name = "serve"
path = "tests/serve.rs"
[[test]]
name = "solve"
path = "tests/solve.rs"
[[test]]
name = "svg"
path = "tests/svg.rs"
[[test]]
name = "verify"
path = "tests/verify.rs"
[[test]]
name = "view"
path = "tests/view.rs"
[[test]]
name = "why"
path = "tests/why.rs"
[[test]]
name = "workspace"
path = "tests/workspace.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.17"
features = ["serde"]
[dependencies.regex]
version = "1"
[dependencies.rustc-demangle]
version = "0.1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.release]
lto = "fat"
codegen-units = 1
debug = 0
rpath = false
strip = true