[package]
name = "cuprate-p2p-core"
version = "0.1.0"
edition = "2021"
license = "MIT"
authors = ["Boog900"]

[features]
default = ["borsh"]
borsh = ["dep:borsh", "cuprate-pruning/borsh"]

[dependencies]
cuprate-helper  = { workspace = true, features = ["asynch"], default-features = false }
cuprate-wire    = { workspace = true, features = ["tracing"] }
cuprate-pruning = { workspace = true }
cuprate-types   = { workspace = true }

tokio = { workspace = true, features = ["net", "sync", "macros", "time", "rt", "rt-multi-thread"]}
tokio-util = { workspace = true, features = ["codec"] }
tokio-stream = { workspace = true, features = ["sync"]}
futures = { workspace = true, features = ["std"] }
async-trait = { workspace = true }
tower = { workspace = true, features = ["util", "tracing", "make"] }

cfg-if = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true, features = ["std", "attributes"] }
hex-literal = { workspace = true }

borsh = { workspace = true, features = ["derive", "std"], optional = true }

[dev-dependencies]
cuprate-test-utils = { workspace = true }

hex = { workspace = true, features = ["std"] }
tokio-test = { workspace = true }

[lints]
workspace = true