# 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 = "2021" rust-version = "1.81.0" name = "pprof2" version = "0.13.0" authors = ["Yang Keao "] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "An internal perf tools for rust programs." documentation = "https://docs.rs/pprof/" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/tikv/pprof-rs" [package.metadata.docs.rs] all-features = true [lib] name = "pprof2" path = "src/lib.rs" [[example]] name = "backtrace_while_sampling" path = "examples/backtrace_while_sampling.rs" [[example]] name = "criterion" path = "examples/criterion.rs" required-features = [ "flamegraph", "criterion", ] [[example]] name = "flamegraph" path = "examples/flamegraph.rs" required-features = ["flamegraph"] [[example]] name = "multithread" path = "examples/multithread.rs" [[example]] name = "multithread_flamegraph" path = "examples/multithread_flamegraph.rs" required-features = ["flamegraph"] [[example]] name = "post_processor" path = "examples/post_processor.rs" [[example]] name = "prime_number" path = "examples/prime_number.rs" [[example]] name = "profile_proto_with_prost" path = "examples/profile_proto_with_prost.rs" required-features = [ "protobuf", "prost-codec", ] [[example]] name = "profile_proto_with_protobuf_codec" path = "examples/profile_proto_with_protobuf_codec.rs" required-features = [ "protobuf", "protobuf-codec", ] [[bench]] name = "addr_validate" path = "benches/addr_validate.rs" harness = false [[bench]] name = "collector" path = "benches/collector.rs" harness = false [dependencies.backtrace] version = "0.3" [dependencies.cfg-if] version = "1.0" [dependencies.criterion] version = "0.5" optional = true [dependencies.findshlibs] version = "0.10" [dependencies.inferno] version = "0.11" features = ["nameattr"] optional = true default-features = false [dependencies.libc] version = "^0.2.158" [dependencies.log] version = "0.4" [dependencies.nix] version = "0.26" features = [ "signal", "fs", ] default-features = false [dependencies.once_cell] version = "1.19" [dependencies.parking_lot] version = "0.12" [dependencies.prost] version = "0.12" optional = true [dependencies.prost-derive] version = "0.12" optional = true [dependencies.smallvec] version = "1.13" [dependencies.symbolic-demangle] version = "12.11" features = ["rust"] default-features = false [dependencies.tempfile] version = "3.12" [dependencies.thiserror] version = "1.0" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.rand] version = "0.8.5" [build-dependencies.prost-build] version = "0.12" optional = true [build-dependencies.sha2] version = "0.10" optional = true [features] _protobuf = [] cpp = ["symbolic-demangle/cpp"] default = ["cpp"] flamegraph = ["inferno"] frame-pointer = [] prost-codec = [ "prost", "prost-derive", "prost-build", "sha2", "_protobuf", ]