Add synor-hosting crate for decentralized web hosting with: - Name Registry: On-chain name→CID mapping with ownership, expiry, and custom domain linking - Domain Verification: CNAME/TXT DNS verification for custom domains - Hosting Router: Host-based routing with SPA support, redirects, and custom headers - synor.json: Project configuration for build, routes, and error pages Users can deploy to myapp.synor.cc and optionally link custom domains. 23 tests passing.
39 lines
806 B
TOML
39 lines
806 B
TOML
[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 }
|
|
|
|
# Local workspace crates
|
|
synor-types = { path = "../synor-types" }
|
|
synor-crypto = { path = "../synor-crypto" }
|
|
synor-storage = { path = "../synor-storage" }
|
|
|
|
[features]
|
|
default = []
|
|
dns = ["trust-dns-resolver"]
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|