Replace the over-engineered iroh-docs/libraries/filters architecture with a simple peer-to-peer sync using: - iroh 0.96 Endpoint for QUIC transport + NAT traversal - iroh-gossip for peer discovery via shared passphrase - Protobuf messages over QUIC streams for asset transfer - CAN service's private /sync/* API for local data access Deleted: announcer, fetcher, library, manifest, node, routes (2860 lines) Added: discovery, peer, protocol (simplified ~600 lines) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
876 B
TOML
43 lines
876 B
TOML
[package]
|
|
name = "can-sync"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
description = "P2P sync agent for CAN service — full mirror replication via iroh"
|
|
|
|
[[bin]]
|
|
name = "can-sync"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# P2P networking (iroh for transport + gossip for discovery — NO iroh-docs)
|
|
iroh = "0.96"
|
|
iroh-gossip = "0.96"
|
|
|
|
# Protobuf (same message types as CAN service sync API)
|
|
prost = "0.13"
|
|
|
|
# HTTP client for CAN service sync API
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_yaml = "0.9"
|
|
|
|
# Crypto
|
|
blake3 = "1"
|
|
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# Stream utilities (needed for gossip event stream)
|
|
n0-future = "0.1"
|
|
|
|
# Utilities
|
|
anyhow = "1"
|
|
bytes = "1"
|
|
hex = "0.4"
|