feat: add native WebRTC bridge with libdatachannel/rustrtc bindings

This commit is contained in:
2026-02-19 11:38:10 -03:00
parent 3da00503a2
commit d8111dd32a
13 changed files with 7236 additions and 0 deletions

25
deps/rustrtc-capi/Cargo.toml vendored Normal file
View File

@@ -0,0 +1,25 @@
[package]
name = "rustrtc-capi"
version = "0.1.0"
edition = "2021"
[lib]
name = "datachannel"
crate-type = ["cdylib", "rlib"]
[dependencies]
rustrtc = "0.3"
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time", "macros"] }
tokio-tungstenite = "0.24"
futures-util = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
parking_lot = "0.12"
log = "0.4"
env_logger = "0.11"
bytes = "1"
time = ">=0.3,<0.3.47"
[[test]]
name = "loopback"
path = "tests/loopback.rs"