- CAN service: public SSE endpoint at /api/v1/can/0/events broadcasts new_asset events on ingest and sync push (no auth required) - Paste backend: SSE proxy at /paste/events streams from CAN service, with auto-reconnect on connection loss - Paste frontend: EventSource subscribes to /paste/events and calls loadItems() on new_asset events for instant UI refresh - When assets arrive via P2P sync, paste updates automatically Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
579 B
TOML
23 lines
579 B
TOML
[package]
|
|
name = "paste"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
description = "Clipboard log UI — example app for CanService"
|
|
|
|
[[bin]]
|
|
name = "paste"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.8", features = ["multipart"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
reqwest = { version = "0.12", features = ["multipart", "json", "stream"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
open = "5"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tokio-stream = "0.1"
|
|
futures-util = "0.3"
|