2026-03-09 15:15:25 -04:00
|
|
|
[workspace]
|
|
|
|
|
members = [
|
2026-06-10 19:29:51 -04:00
|
|
|
"crates/buzz-relay",
|
|
|
|
|
"crates/buzz-core",
|
|
|
|
|
"crates/buzz-db",
|
|
|
|
|
"crates/buzz-pubsub",
|
|
|
|
|
"crates/buzz-auth",
|
|
|
|
|
"crates/buzz-search",
|
|
|
|
|
"crates/buzz-audit",
|
|
|
|
|
"crates/buzz-acp",
|
|
|
|
|
"crates/buzz-agent",
|
2026-05-17 13:31:58 -04:00
|
|
|
"crates/sprig",
|
2026-06-10 19:29:51 -04:00
|
|
|
"crates/buzz-proxy",
|
|
|
|
|
"crates/buzz-test-client",
|
|
|
|
|
"crates/buzz-ws-client",
|
|
|
|
|
"crates/buzz-admin",
|
|
|
|
|
"crates/buzz-workflow",
|
|
|
|
|
"crates/buzz-media",
|
|
|
|
|
"crates/buzz-cli",
|
|
|
|
|
"crates/buzz-pairing-cli",
|
|
|
|
|
"crates/buzz-sdk",
|
|
|
|
|
"crates/buzz-persona",
|
2026-04-29 18:04:59 -04:00
|
|
|
"crates/git-credential-nostr",
|
2026-05-03 10:05:30 -04:00
|
|
|
"crates/git-sign-nostr",
|
2026-06-10 19:29:51 -04:00
|
|
|
"crates/buzz-pair-relay",
|
|
|
|
|
"crates/buzz-dev-mcp",
|
2026-05-08 15:39:40 -07:00
|
|
|
"examples/countdown-bot",
|
2026-03-09 15:15:25 -04:00
|
|
|
]
|
2026-03-09 13:02:11 -07:00
|
|
|
exclude = ["desktop/src-tauri"]
|
2026-03-09 15:15:25 -04:00
|
|
|
resolver = "2"
|
|
|
|
|
|
|
|
|
|
[workspace.package]
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
|
|
|
|
rust-version = "1.88.0"
|
|
|
|
|
license = "Apache-2.0"
|
2026-05-24 13:09:34 -04:00
|
|
|
repository = "https://github.com/block/sprout"
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
[workspace.dependencies]
|
|
|
|
|
# Runtime
|
2026-03-10 22:53:32 -04:00
|
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "time", "sync", "io-util", "signal", "process"] }
|
2026-03-27 18:25:18 -04:00
|
|
|
tokio-util = { version = "0.7", features = ["rt", "codec"] }
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# HTTP + WebSocket
|
|
|
|
|
axum = { version = "0.8", features = ["ws", "macros"] }
|
|
|
|
|
tower = { version = "0.5", features = ["timeout", "util"] }
|
2026-05-05 13:20:13 -06:00
|
|
|
tower-http = { version = "0.6", features = ["trace", "cors", "compression-gzip", "limit", "fs"] }
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Database
|
2026-05-25 21:32:34 +00:00
|
|
|
sqlx = { version = "0.9", features = [
|
|
|
|
|
"runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "json"
|
2026-03-09 15:15:25 -04:00
|
|
|
] }
|
|
|
|
|
|
|
|
|
|
# Redis
|
2026-05-21 17:55:44 -04:00
|
|
|
redis = { version = "1.0", features = ["tokio-comp", "connection-manager"] }
|
|
|
|
|
deadpool-redis = { version = "0.23", features = ["rt_tokio_1"] }
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Nostr
|
2026-05-22 17:17:11 -04:00
|
|
|
nostr = { version = "0.44", features = ["nip44", "nip98"] }
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Serialization
|
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
serde_yaml = "0.9"
|
|
|
|
|
evalexpr = "11"
|
2026-04-08 11:55:11 -07:00
|
|
|
cron = "0.16"
|
2026-03-09 15:15:25 -04:00
|
|
|
# Observability
|
|
|
|
|
tracing = "0.1"
|
|
|
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
2026-03-17 19:00:44 -04:00
|
|
|
metrics = "0.24"
|
|
|
|
|
metrics-exporter-prometheus = "0.18"
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Error handling
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
anyhow = "1"
|
|
|
|
|
|
|
|
|
|
# Utilities
|
|
|
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
|
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
|
|
|
|
|
|
# HTTP client (webhook delivery, Typesense indexing)
|
2026-04-08 11:55:11 -07:00
|
|
|
reqwest = { version = "0.13", features = ["json", "rustls"], default-features = false }
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Cryptography
|
2026-04-08 11:55:11 -07:00
|
|
|
sha2 = "0.11"
|
2026-03-09 15:15:25 -04:00
|
|
|
hex = "0.4"
|
2026-04-08 11:55:11 -07:00
|
|
|
hmac = "0.13"
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Randomness
|
2026-04-08 11:55:11 -07:00
|
|
|
rand = "0.10"
|
2026-04-16 14:56:36 -04:00
|
|
|
subtle = "2.6"
|
|
|
|
|
zeroize = "1.8"
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Concurrent data structures
|
|
|
|
|
dashmap = "6"
|
2026-03-12 10:11:56 -04:00
|
|
|
moka = { version = "0.12", features = ["sync"] }
|
2026-03-09 15:15:25 -04:00
|
|
|
|
|
|
|
|
# Async stream utilities
|
|
|
|
|
futures-util = "0.3"
|
|
|
|
|
|
|
|
|
|
# WebSocket client (test client)
|
2026-04-08 11:55:11 -07:00
|
|
|
tokio-tungstenite = { version = "0.29", features = ["rustls-tls-webpki-roots"] }
|
2026-03-09 15:15:25 -04:00
|
|
|
url = "2"
|
|
|
|
|
|
2026-06-10 19:29:51 -04:00
|
|
|
# MCP SDK (used by buzz-dev-mcp and buzz-agent)
|
2026-03-09 15:15:25 -04:00
|
|
|
rmcp = { version = "1.1.0", features = ["server", "transport-io", "macros"] }
|
|
|
|
|
schemars = { version = "1", default-features = false }
|
|
|
|
|
|
|
|
|
|
# Internal crates
|
2026-06-10 19:29:51 -04:00
|
|
|
buzz-core = { path = "crates/buzz-core" }
|
|
|
|
|
buzz-db = { path = "crates/buzz-db" }
|
|
|
|
|
buzz-auth = { path = "crates/buzz-auth" }
|
|
|
|
|
buzz-pubsub = { path = "crates/buzz-pubsub" }
|
|
|
|
|
buzz-search = { path = "crates/buzz-search" }
|
|
|
|
|
buzz-audit = { path = "crates/buzz-audit" }
|
|
|
|
|
buzz-proxy = { path = "crates/buzz-proxy" }
|
|
|
|
|
buzz-workflow = { path = "crates/buzz-workflow" }
|
|
|
|
|
buzz-media = { path = "crates/buzz-media" }
|
|
|
|
|
buzz-sdk = { path = "crates/buzz-sdk" }
|
|
|
|
|
buzz-ws-client = { path = "crates/buzz-ws-client" }
|
2026-04-13 11:04:46 -07:00
|
|
|
|
2026-06-16 12:44:13 -04:00
|
|
|
# CI profile — builds the relay for desktop e2e. Dependencies keep full
|
|
|
|
|
# release optimization (warm from main's cache; they carry the runtime hot
|
|
|
|
|
# path: tokio/sqlx/axum). Workspace crates build at opt-level 1 — enough for
|
|
|
|
|
# stable e2e timing (PR #307 flakiness was opt-0 + debug-assertions) at
|
|
|
|
|
# roughly half the codegen cost. `incremental` is irrelevant in CI:
|
|
|
|
|
# rust-cache exports CARGO_INCREMENTAL=0 and never caches member artifacts.
|
2026-04-13 11:04:46 -07:00
|
|
|
[profile.ci]
|
|
|
|
|
inherits = "release"
|
|
|
|
|
lto = false
|
2026-06-16 12:44:13 -04:00
|
|
|
opt-level = 1
|
|
|
|
|
|
|
|
|
|
[profile.ci.package."*"]
|
|
|
|
|
opt-level = 3
|
2026-05-17 13:31:58 -04:00
|
|
|
|
|
|
|
|
# Sprig profile — optimized for deploy-anywhere Sprig release artifacts.
|
|
|
|
|
# Sprig is distributed over the network and installed on fresh hosts, so binary
|
|
|
|
|
# size matters more than compile speed here. Keep this separate from the normal
|
|
|
|
|
# `release` profile so desktop/dev release builds do not inherit the slower
|
|
|
|
|
# size-focused settings unless they opt in explicitly.
|
|
|
|
|
[profile.sprig]
|
|
|
|
|
inherits = "release"
|
|
|
|
|
opt-level = "z"
|
|
|
|
|
lto = "fat"
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
panic = "abort"
|
|
|
|
|
strip = true
|