Skip to main content

webrtc/
lib.rs

1#![warn(rust_2018_idioms)]
2#![allow(dead_code)]
3
4//! Tokio-based WebRTC implementation in Rust
5//!
6//! This crate provides an async-friendly Tokio integration built on top of the
7//! runtime-independent Sans-I/O [rtc](https://docs.rs/rtc) protocol core.
8//!
9//! # Async Runtime Support
10//!
11//! Tokio is always enabled. The `runtime-tokio` feature name remains as a
12//! source-compatible no-op for existing manifests.
13
14pub mod data_channel;
15pub mod media_stream;
16pub mod peer_connection;
17pub mod rtp_transceiver;
18pub mod runtime;
19
20/// Error and Result types
21///
22/// Re-exports [`error::Error`] and [`error::Result`] from `rtc-shared` so that
23/// callers only need to import from `webrtc::error` rather than reaching into
24/// the lower-level crate directly.
25pub mod error {
26    pub use rtc::shared::error::{Error, Result};
27}