parsely_rs/
lib.rs

1#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
2
3// TODO: these should be moved to a prelude file
4pub use parsely_impl::anyhow::{Context, anyhow, bail};
5pub use parsely_impl::error::{IntoParselyResult, IntoWritableParselyResult, ParselyResult};
6pub use parsely_impl::impl_stateless_sync;
7pub use parsely_impl::nsw_types::{from_bitslice::BitSliceUxExts, *};
8pub use parsely_impl::{BigEndian, ByteOrder, LittleEndian, NetworkOrder};
9pub use parsely_impl::{BitBuf, BitBufExts, BitBufMut, BitBufMutExts, Bits, BitsMut};
10pub use parsely_impl::{BitCursor, BitRead, BitWrite};
11pub use parsely_impl::{
12    parsely_read::ParselyRead, parsely_write::ParselyWrite, parsely_write::StateSync,
13};
14pub use parsely_macro::{ParselyRead, ParselyWrite};
15
16// These are more advanced usage: shouldn't be in prelude but should be accessible (needed to
17// implement custom read/write trait types for the bitcursor type...maybe an alias would be better?)