content: [package]
  name = "mz-prof"
  description = "CPU and memory profiling tools."
  version = "0.0.0"
  edition.workspace = true
  rust-version.workspace = true
  publish = false
  license = "Apache-2.0"
  
  [lints]
  workspace = true
  
  [dependencies]
  anyhow = "1.0.100"
  backtrace = "0.3.76"
  flate2 = "1.1.4"
  itertools = "0.14.0"
  jemalloc_pprof = { version = "0.8", optional = true }
  pprof_util = "0.8"
  mz-ore = { path = "../ore", default-features = false, features = ["async"] }
  pprof = "0.14.0"
  prost = { version = "0.13.5", features = ["no-recursion-limit"] }
  tikv-jemalloc-ctl = { version = "0.6", features = ["use_std", "stats"], optional = true }
  tracing = "0.1.37"
  tokio = { version = "1.44.1", features = ["time"] }
  workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true }
  
  [build-dependencies]
  anyhow = "1.0.100"
  mz-build-tools = { path = "../build-tools", default-features = false, features = ["protobuf-src"] }
  prost-build = "0.13.5"
  
  [features]
  default = ["workspace-hack"]
  # Whether to enable profiling features that depend on jemalloc.
  jemalloc = ["tikv-jemalloc-ctl", "jemalloc_pprof"]
  
  [package.metadata.cargo-udeps.ignore]
  # "bytesize" not used on linux
  normal = ["bytesize", "workspace-hack"]
  
  [package.metadata.cargo-gazelle]
  # We manually write this BUILD.bazel file because we need to carefully
  # configure when `jemalloc` gets used for ASAN.
  skip_generating = true
  