gstreamer_webrtc/
lib.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![allow(clippy::missing_safety_doc)]
5#![allow(clippy::manual_c_str_literals)]
6#![doc = include_str!("../README.md")]
7
8pub use glib;
9pub use gst;
10pub use gst_sdp;
11pub use gstreamer_webrtc_sys as ffi;
12
13macro_rules! skip_assert_initialized {
14    () => {};
15}
16
17#[allow(clippy::needless_borrow)]
18#[allow(unused_imports)]
19mod auto;
20pub use crate::auto::*;
21
22#[cfg(feature = "v1_22")]
23#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
24mod web_rtc_ice_candidate_stats;
25mod web_rtc_session_description;
26#[cfg(feature = "v1_22")]
27#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
28mod web_rtcice;
29
30// Re-export all the traits in a prelude module, so that applications
31// can always "use gst_webrtc::prelude::*" without getting conflicts
32pub mod prelude {
33    #[cfg(feature = "v1_22")]
34    #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
35    pub use crate::web_rtcice::WebRTCICEExtManual;
36    #[doc(hidden)]
37    pub use gst_sdp::prelude::*;
38
39    #[cfg(feature = "v1_22")]
40    #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
41    pub use crate::auto::traits::*;
42}