42 releases

0.11.0 May 2, 2024
0.10.1 Feb 24, 2024
0.9.0 Sep 10, 2023
0.8.0 Jun 20, 2023
0.0.0 Aug 16, 2018

#1 in Video

Download history 8632/week @ 2024-07-29 8720/week @ 2024-08-05 9652/week @ 2024-08-12 8275/week @ 2024-08-19 8347/week @ 2024-08-26 7993/week @ 2024-09-02 7238/week @ 2024-09-09 7216/week @ 2024-09-16 6087/week @ 2024-09-23 6224/week @ 2024-09-30 6644/week @ 2024-10-07 6563/week @ 2024-10-14 5688/week @ 2024-10-21 5315/week @ 2024-10-28 6226/week @ 2024-11-04 6122/week @ 2024-11-11

23,603 downloads per month
Used in 61 crates (27 directly)

MIT/Apache

1MB
19K SLoC

WebRTC.rs

License: MIT/Apache 2.0 Discord Twitter

A pure Rust implementation of WebRTC stack. Rewrite Pion WebRTC stack in Rust

Sponsored with 💖 by

Gold Sponsors:
Parity Technologies

Silver Sponsors:
Stream Chat
KittyCAD
Bronze Sponsors:
embark
AdrianEddy

Table of Content

Overview

WebRTC.rs is a pure Rust implementation of WebRTC stack, which rewrites Pion stack in Rust. This project is still in active and early development stage, please refer to the Roadmap to track the major milestones and releases. Examples provide code samples to show how to use webrtc-rs to build media and data channel applications.

Features

WebRTC
Media Interceptor Data
RTP RTCP SRTP SCTP
DTLS
mDNS STUN TURN ICE
SDP Util

WebRTC Crates Dependency Graph

WebRTC Stack

Building

Toolchain

Minimum Supported Rust Version: 1.65.0

Our minimum supported rust version(MSRV) policy is to support versions of the compiler released within the last six months. We don't eagerly bump the minimum version we support, instead the minimum will be bumped on a needed by needed basis, usually because downstream dependencies force us to.

Note: Changes to the minimum supported version are not consider breaking from a semver perspective.

Monorepo Setup

All webrtc dependent crates and examples are included in this repository at the top level in a Cargo workspace.

To build all webrtc examples:

cd examples
cargo test # build all examples (maybe very slow)
#[ or just build single example (much faster)
cargo build --example play-from-disk-vpx # build play-from-disk-vpx example only
cargo build --example play-from-disk-h264 # build play-from-disk-h264 example only
#...
#]

To build webrtc crate:

cargo build [or clippy or test or fmt]

Open Source License

Dual licensing under both MIT and Apache-2.0 is the currently accepted standard by the Rust language community and has been used for both the compiler and many public libraries since (see https://doc.rust-lang.org/1.6.0/complement-project-faq.html#why-dual-mitasl2-license). In order to match the community standards, webrtc-rs is using the dual MIT+Apache-2.0 license.

Contributing

Contributors or Pull Requests are Welcome!!!

Dependencies

~32–45MB
~849K SLoC