[package]
name = "synor-hosting"
version = "0.1.0"
edition = "2021"
description = "Decentralized web hosting for the Synor blockchain"
license = "MIT"
authors = ["Synor Team"]
repository = "https://github.com/synor/synor"

[dependencies]
# Core
thiserror = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
async-trait = "0.1"

# Cryptography
blake3 = "1"
ed25519-dalek = "2"

# Encoding
bs58 = "0.5"
hex = "0.4"

# DNS verification
trust-dns-resolver = { version = "0.23", optional = true }

# HTTP Server (optional, for gateway server)
axum = { version = "0.7", optional = true }
tower = { version = "0.4", optional = true }
reqwest = { version = "0.12", features = ["json"], optional = true }

# Local workspace crates
synor-types = { path = "../synor-types" }
synor-crypto = { path = "../synor-crypto" }
synor-storage = { path = "../synor-storage" }
synor-compute = { path = "../synor-compute", optional = true }

[features]
default = []
dns = ["trust-dns-resolver"]
server = ["axum", "tower", "reqwest"]
compute = ["synor-compute"]
full = ["dns", "server", "compute"]

[[bin]]
name = "hosting-gateway"
path = "src/bin/hosting-gateway.rs"
required-features = ["server"]

[dev-dependencies]
tempfile = "3"
