content: [package]
  name = "fuel-core-p2p"
  version = { workspace = true }
  authors = { workspace = true }
  categories = ["cryptography::cryptocurrencies", "network-programming"]
  edition = { workspace = true }
  homepage = { workspace = true }
  keywords = ["blockchain", "cryptocurrencies", "fuel-core-p2p", "networking"]
  license = { workspace = true }
  repository = { workspace = true }
  rust-version = { workspace = true }
  description = "Fuel client networking"
  
  [features]
  test-helpers = ["fuel-core-types/test-helpers"]
  fault-proving = [
      "fuel-core-types/fault-proving",
      "fuel-core-storage/fault-proving",
      "fuel-core-chain-config/fault-proving",
  ]
  
  [dependencies]
  anyhow = { workspace = true }
  async-trait = { workspace = true }
  fuel-core-chain-config = { workspace = true }
  fuel-core-metrics = { workspace = true } # TODO make this a feature
  fuel-core-services = { workspace = true, features = ["sync-processor"] }
  fuel-core-storage = { workspace = true, features = ["std"] }
  fuel-core-types = { workspace = true, features = ["std", "serde"] }
  futures = { workspace = true }
  hex = { workspace = true }
  hickory-resolver = "0.24.1"
  libp2p = { version = "0.54.1", default-features = false, features = [
    "dns",
    "gossipsub",
    "identify",
    "kad",
    "macros",
    "mdns",
    "noise",
    "request-response",
    "secp256k1",
    "tcp",
    "tokio",
    "yamux",
    "websocket",
    "metrics",
  ] }
  parking_lot = { workspace = true }
  postcard = { workspace = true, features = ["use-std"] }
  quick_cache = "0.6.9"
  rand = { workspace = true }
  serde = { workspace = true, features = ["derive"] }
  sha2 = "0.10"
  strum = { workspace = true }
  strum_macros = { workspace = true }
  thiserror = "1.0.47"
  tokio = { workspace = true, features = ["sync"] }
  tracing = { workspace = true }
  void = "1"
  # Fix publishing of the crate
  yamux = "=0.13.5"
  
  [dev-dependencies]
  fuel-core-p2p = { path = ".", features = ["test-helpers"] }
  fuel-core-services = { path = "../../services", features = ["test-helpers"] }
  fuel-core-trace = { path = "../../trace" }
  fuel-core-types = { path = "../../types", features = ["serde", "test-helpers"] }
  rand = { workspace = true }
  tokio = { workspace = true, features = ["full", "test-util"] }
  tracing-attributes = { workspace = true }
  
  [dev-dependencies.libp2p-swarm-test]
  version = "0.4.0"
  