[package]
name = "iroh-topic-tracker"
version = "0.1.11"
edition = "2021"
authors = ["Zacharias Boehler <rustonbsd@mailfence.com>"]
description = "Iroh universal (gossipsub) topic tracker."
license = "MIT"
repository = "https://github.com/rustonbsd/iroh-topic-tracker"
readme = "README.md"
keywords = ["gossipsub", "iroh", "pubsub", "networking", "tracker"]
categories = ["network-programming"]

[dependencies]
iroh = "0.31"
tokio ={ version="1",features = ["full"] }
anyhow = "1"
rand = "0.8.0"
serde = "1"
serde_json = "1"
bytes = { version = "1.7", features = ["serde"] }
ed25519-dalek = { version = "2.0.0", features = ["serde", "rand_core"] }
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
futures-lite = "2"
z32 = "1"
sha2 = "0.10"

# Optional dependencies
iroh-gossip = { version = "0.31.0", optional = true }

[dev-dependencies]
tokio = { version = "1", features = ["full", "test-util"] }

[features]
default = ["iroh-gossip-cast","iroh-gossip-auto-discovery"]
iroh-gossip-cast = ["iroh-gossip"]
iroh-gossip-auto-discovery = ["iroh-gossip","iroh-gossip-cast"]

[profile.dev]
opt-level = 0
features = ["iroh-gossip-auto-discovery"]

[profile.release]
opt-level = 3
lto = true
panic = "abort"
features = []