1 #![warn(rust_2018_idioms)] 2 #![allow(dead_code)] 3 4 // re-export sub-crates 5 pub use data; 6 pub use dtls; 7 pub use ice; 8 pub use interceptor; 9 pub use mdns; 10 pub use media; 11 pub use rtcp; 12 pub use rtp; 13 pub use sctp; 14 pub use sdp; 15 pub use srtp; 16 pub use stun; 17 pub use turn; 18 pub use util; 19 20 pub mod api; 21 pub mod data_channel; 22 pub mod dtls_transport; 23 pub mod error; 24 pub mod ice_transport; 25 pub mod mux; 26 pub mod peer_connection; 27 pub mod rtp_transceiver; 28 pub mod sctp_transport; 29 pub mod stats; 30 pub mod track; 31 32 pub use error::Error; 33 34 #[macro_use] 35 extern crate lazy_static; 36 37 pub(crate) const UNSPECIFIED_STR: &str = "Unspecified"; 38 39 /// Equal to UDP MTU 40 pub(crate) const RECEIVE_MTU: usize = 1460; 41 42 pub(crate) const SDP_ATTRIBUTE_RID: &str = "rid"; 43 pub(crate) const GENERATED_CERTIFICATE_ORIGIN: &str = "WebRTC"; 44 pub(crate) const SDES_REPAIR_RTP_STREAM_ID_URI: &str = 45 "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"; 46