content: [package]
  name = "mz-build-tools"
  description = "Provides access to tools required in build scripts."
  version = "0.0.0"
  edition.workspace = true
  rust-version.workspace = true
  publish = false
  
  [dependencies]
  cfg-if = "1.0.3"
  protobuf-src = { version = "2.1.1", optional = true }
  which = "8"
  workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true }
  
  [lints]
  workspace = true
  
  [features]
  default = ["protobuf-src", "workspace-hack"]
  bazel = []
  
  [package.metadata.cargo-udeps.ignore]
  normal = ["workspace-hack"]
  
  [package.metadata.cargo-gazelle.lib]
  features_override = ["default", "bazel"]
  extra_deps = ["@rules_rust//tools/runfiles"]
  data = [
      "@com_google_protobuf//:protoc",
      "@com_google_protobuf//:well_known_type_protos",
  ]
  rustc_flags = ["--cfg=bazel"]
  
  # Skip generating doc tests because there isn't a way to set the rustc flags
  # used for the test, so we can't set the `--cfg=bazel` flag.
  [package.metadata.cargo-gazelle.test.doc]
  skip = true
  
  [package.metadata.cargo-gazelle.test.lib]
  rustc_flags = ["--cfg=bazel"]
  