First commit in rust

This commit is contained in:
2026-02-19 13:51:07 +08:00
commit c37ca9ba52
73 changed files with 9737 additions and 0 deletions

42
Cargo.toml Normal file
View File

@@ -0,0 +1,42 @@
[workspace]
resolver = "2"
members = [
"backchannel-common",
"backchannel-server",
"backchannel-client",
]
[workspace.dependencies]
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# IDs / time
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
# Error handling
thiserror = "1"
anyhow = "1"
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Encoding
base64 = "0.22"
# Crypto
rand = "0.8"
argon2 = "0.5"
ed25519-dalek = { version = "2", features = ["rand_core"] }
x25519-dalek = { version = "2", features = ["static_secrets"] }
chacha20poly1305 = "0.10"
hkdf = "0.12"
sha2 = "0.10"
# Async runtime
tokio = { version = "1", features = ["full"] }
# WebSocket
tokio-tungstenite = "0.21"