Skip to main content

srt_runtime/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "std"), no_std)]
3#![forbid(unsafe_code)]
4#![warn(missing_docs)]
5#![cfg_attr(docsrs, feature(doc_cfg))]
6
7extern crate alloc;
8
9pub mod arq;
10pub mod caller;
11#[cfg(feature = "crypto")]
12#[cfg_attr(docsrs, doc(cfg(feature = "crypto")))]
13pub mod crypto;
14pub mod error;
15pub mod filecc;
16pub mod handshake_sm;
17#[cfg(feature = "crypto")]
18#[cfg_attr(docsrs, doc(cfg(feature = "crypto")))]
19pub mod km_refresh;
20pub mod listener;
21pub mod livecc;
22pub mod packet;
23pub mod rendezvous;
24pub mod tsbpd;
25
26#[cfg(feature = "tokio")]
27#[cfg_attr(docsrs, doc(cfg(feature = "tokio")))]
28pub mod io;
29
30pub use caller::{CallerHandshake, CallerHandshakeState};
31pub use error::{Error, Result};
32pub use handshake_sm::{HandshakeConfig, HandshakeOutput, NegotiatedParams, RejectionReason};
33pub use listener::{ListenerHandshake, ListenerHandshakeState};
34pub use packet::SrtPacket;
35pub use rendezvous::{RendezvousHandshake, RendezvousHandshakeState, RendezvousRole};
36
37/// The Internet-Draft this crate implements packet structure from.
38pub const SPEC: &str = "draft-sharabayko-srt-01";