# 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.66.0" name = "pprof" version = "0.14.0" authors = ["Yang Keao "] 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 [[example]] name = "flamegraph" required-features = ["flamegraph"] [[example]] name = "profile_proto_with_prost" required-features = [ "protobuf", "prost-codec", ] [[example]] name = "profile_proto_with_protobuf_codec" required-features = [ "protobuf", "protobuf-codec", ] [[example]] name = "multithread_flamegraph" required-features = ["flamegraph"] [[example]] name = "criterion" required-features = [ "flamegraph", "criterion", ] [[bench]] name = "collector" path = "benches/collector.rs" harness = false [[bench]] name = "addr_validate" path = "benches/addr_validate.rs" harness = false [dependencies.aligned-vec] version = "0.6" [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.66" [dependencies.log] version = "0.4" [dependencies.nix] version = "0.26" features = [ "signal", "fs", ] default-features = false [dependencies.once_cell] version = "1.9" [dependencies.parking_lot] version = "0.12" [dependencies.prost] version = "0.12" optional = true [dependencies.prost-derive] version = "0.12" optional = true [dependencies.protobuf] version = "2.0" optional = true [dependencies.smallvec] version = "1.7" [dependencies.symbolic-demangle] version = "12.1" features = ["rust"] default-features = false [dependencies.tempfile] version = "3.1" [dependencies.thiserror] version = "1.0" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.rand] version = "0.8.0" [build-dependencies.prost-build] version = "0.12" optional = true [build-dependencies.protobuf-codegen-pure] version = "2.0" 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", ] protobuf-codec = [ "protobuf", "protobuf-codegen-pure", "_protobuf", ]