variable_len_reader/
lib.rs1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3
4#![cfg_attr(not(feature = "std"), no_std)]
5#[cfg(feature = "alloc")]
6extern crate alloc;
7
8#[cfg(feature = "async")]
9extern crate pin_project_lite;
10
11pub mod util;
12#[cfg(feature = "sync")]
13#[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
14pub mod synchronous;
15#[cfg(feature = "async")]
16#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
17pub mod asynchronous;
18
19mod impls;
20
21#[cfg(feature = "sync")]
22#[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
23pub use synchronous::{reader::VariableReader, writer::VariableWriter, VariableReadable, VariableWritable};
24#[cfg(feature = "async")]
25#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
26pub use asynchronous::{reader::AsyncVariableReader, writer::AsyncVariableWriter, AsyncVariableReadable, AsyncVariableWritable};
27
28pub mod helper {
29 #[cfg(feature = "async_u8_vec")]
30 #[cfg_attr(docsrs, doc(cfg(feature = "async_u8_vec")))]
31 pub use crate::asynchronous::helper::{AsyncReaderHelper, AsyncWriterHelper};
32}
33
34