Skip to main content

rtmp_runtime/
lib.rs

1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3#![warn(missing_docs)]
4#![cfg_attr(docsrs, feature(doc_cfg))]
5#![cfg_attr(not(any(feature = "tokio", feature = "target", test)), no_std)]
6
7extern crate alloc;
8
9pub mod amf0;
10pub mod chunk;
11pub mod client;
12#[cfg(feature = "tokio")]
13mod codec;
14pub mod error;
15pub mod flv;
16pub mod handshake;
17#[cfg(feature = "tokio")]
18#[cfg_attr(docsrs, doc(cfg(feature = "tokio")))]
19pub mod io;
20pub mod message;
21pub mod server;
22#[cfg(feature = "target")]
23#[cfg_attr(docsrs, doc(cfg(feature = "target")))]
24pub mod target;
25
26pub use error::RtmpError;
27
28/// The Adobe RTMP specification version this engine implements.
29pub const RTMP_VERSION: &str = "RTMP 1.0";