johnandersen777.bsky.social/atlibs-webrtc
WebRTC transport for atlibs: com.fedfork.exec.webrtc.connect in the browser, and webrtc-peer, its guest side
0
0
# `webrtc-peer` (src/main.rs over src/lib.rs): the WebRTC guest side on this machine, test tooling for
# tests/loopback.test.mjs, its own binary (not in the atlibs CLI or a release). It uses only atlibs-host's Signal. str0m is sans-IO (we own the UDP loop,
# on tokio as everything else); its rust-crypto backend reuses RustCrypto (its cert generation links aws-lc).
# webrtc-rs was the alternative at ~75 new crates to str0m's ~40.
[package]
name = "atlibs-webrtc"
version = "0.1.0"
license = "Unlicense"
edition = "2024"
publish = false
autobins = false
[[bin]]
name = "webrtc-peer"
path = "src/main.rs"
[dependencies]
atlibs-host = { git = "https://knotless.dev/johnandersen777.bsky.social/atlibs" }
base64 = "0.22"
http = "1"
http-body-util = "0.1"
hyper = { version = "1", features = ["server", "http1"] }
hyper-util = { version = "0.1", features = ["tokio"] }
rand_core = { version = "0.6", features = ["getrandom"] }
serde_json = { version = "1", features = ["preserve_order"] }
str0m = { version = "0.25", default-features = false, features = ["rust-crypto"] }
tokio = { version = "1", features = ["full"] }
# age X25519, over crates str0m already brings (one tiny new one: bech32).
bech32 = "0.11"
chacha20poly1305 = "0.11"
hkdf = "0.13"
hmac = "0.13"
sha2_11 = { package = "sha2", version = "0.11" }
x25519-dalek = "3"
[profile.release]
strip = true