| Crates.io | tx5-go-pion-sys |
| lib.rs | tx5-go-pion-sys |
| version | 0.8.0 |
| created_at | 2023-01-17 17:40:23.012177+00 |
| updated_at | 2025-08-28 16:38:13.94824+00 |
| description | Low level rust bindings to the go pion webrtc library |
| homepage | |
| repository | https://github.com/holochain/tx5 |
| max_upload_size | |
| id | 761133 |
| size | 3,049,545 |
P2P WebRTC connection establishment and pooling. Tx5 uses SBD as the WebRTC signaling protocol for connection establishment, providing an interface where you can attempt to send data to any known peer with the expectation that Tx5 will open a connection to that peer or use an existing open connection.
Rust bindings to the go pion webrtc library.
Access the go-pion-webrtc api interface using the pub once_cell::sync::Lazy static [API] handle.
WARNING - Only 1 single golang ffi binding is allowed per binary. If you attempt to include a second one, you will end up running 2 parallel garbage collectors that will step on each other and crash your program.
Golang ffi works better with static linking on platforms that support it.
Unfortunately, we also must support dynamic linking for Android and Windows.
Either way, the Go code exports two calls:
Every api passes through one of these two iterfaces.