Skip to main content

riff_chunks/
lib.rs

1#![forbid(unsafe_code)]
2#![warn(missing_docs)]
3#![cfg_attr(not(feature = "std"), no_std)]
4//! RIFF container readers and a seekable writer.
5//!
6//! [`Riff`] borrows a complete input slice. [`ChunkReader`] reads a stream
7//! when the `std` feature is active. Both readers leave list descent to the
8//! caller and report resolved RF64 sizes.
9
10mod borrowed;
11mod error;
12mod fourcc;
13
14#[cfg(feature = "std")]
15mod stream;
16#[cfg(feature = "std")]
17mod writer;
18
19pub use borrowed::{Chunk, ChunkHeader, Chunks, Ds64, Form, Header, Riff, MAX_DEPTH};
20pub use error::{Error, Feature, Result};
21pub use fourcc::{Fourcc, FourccError};
22
23#[cfg(feature = "std")]
24pub use stream::{ChunkReader, Payload, Seekable, Source};
25#[cfg(feature = "std")]
26pub use writer::ChunkWriter;