Skip to main content

hurray_io/stream/
mod.rs

1// Private modules with a flat re-export: one canonical path per item, so
2// `hurray_io::stream::StreamReaderCore` is the only way to spell it.
3mod sans_io;
4mod types;
5
6// Only the drivers need Tokio; the core and the types it works on do not (ADR-041 ยง 1).
7#[cfg(feature = "tokio")]
8pub mod reader;
9#[cfg(feature = "tokio")]
10pub mod writer;
11
12pub use sans_io::{
13    AlignedDestination, CompositeAssembler, Destination, DestinationAlloc, DestinationRequest,
14    ReadStep, StreamReaderCore, StreamWriterCore, SystemDestinations, Unusable, WriteOp, WriteStep,
15};
16pub use types::{
17    CompositeNode, StreamComposite, StreamItem, StreamReaderOptions, StreamTensor,
18    DEFAULT_MAX_COMPOSITE_DEPTH, DEFAULT_MAX_DESCRIPTOR_BYTES,
19};
20
21#[cfg(feature = "tokio")]
22pub use reader::StreamReader;
23#[cfg(feature = "tokio")]
24pub use writer::StreamWriter;