# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "dial9-perf-self-profile"
version = "0.4.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimal self-profiling via Linux perf_event_open with frame-pointer-based stack traces"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/dial9-rs/dial9-tokio-telemetry"

[package.metadata.docs.rs]
rustc-args = [
    "-C",
    "force-frame-pointers=yes",
]
targets = ["x86_64-unknown-linux-gnu"]
all-features = true

[features]
__internal-bench = []

[lib]
name = "dial9_perf_self_profile"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "debug_cs"
path = "examples/debug_cs.rs"

[[example]]
name = "multithread"
path = "examples/multithread.rs"

[[example]]
name = "test_sleep"
path = "examples/test_sleep.rs"

[[test]]
name = "fallback_detection"
path = "tests/fallback_detection.rs"

[[test]]
name = "multithread"
path = "tests/multithread.rs"

[[test]]
name = "sched_triggers"
path = "tests/sched_triggers.rs"

[[test]]
name = "symbolize_stack"
path = "tests/symbolize_stack.rs"

[[test]]
name = "tracepoint_e2e"
path = "tests/tracepoint_e2e.rs"

[[bench]]
name = "unwind"
path = "benches/unwind.rs"
harness = false
required-features = ["__internal-bench"]

[dependencies.dial9-trace-format]
version = "0.4.1"

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.criterion]
version = "0.5"

[target.'cfg(target_os = "linux")'.dependencies.blazesym]
version = "0.2"

[target.'cfg(target_os = "linux")'.dependencies.crossbeam-utils]
version = "0.8"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "linux")'.dependencies.perf-event-data]
version = "0.1.8"

[target.'cfg(target_os = "linux")'.dependencies.perf-event-open-sys2]
version = "5.0.6"
