VM Integration: - Add compute module with offloadable operations support - Enable distributed execution for heavy VM operations - Support batch signature verification, merkle proofs, hashing - Add ComputeContext for managing compute cluster connections - Feature-gated behind 'compute' flag Hosting Integration: - Add edge compute module for serverless functions - Support edge functions (WASM, JS, Python runtimes) - Enable server-side rendering and image optimization - Add AI/ML inference at the edge - Feature-gated behind 'compute' flag Docker Deployment: - Add docker-compose.compute.yml for compute layer - Deploy orchestrator, CPU workers, WASM worker, spot market - Include Redis for task queue and Prometheus for metrics - Reserved ports: 17250-17290 for compute services
53 lines
1.2 KiB
TOML
53 lines
1.2 KiB
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 }
|
|
|
|
# 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"
|