scuffle_bytes_util/
lib.rs

1//! Adds some helpful utilities for working with bits and bytes.
2#![cfg_attr(feature = "docs", doc = "\n\nSee the [changelog][changelog] for a full release history.")]
3#![cfg_attr(feature = "docs", doc = "## Feature flags")]
4#![cfg_attr(feature = "docs", doc = document_features::document_features!())]
5//! ## License
6//!
7//! This project is licensed under the MIT or Apache-2.0 license.
8//! You can choose between one of them if you use this work.
9//!
10//! `SPDX-License-Identifier: MIT OR Apache-2.0`
11#![cfg_attr(all(coverage_nightly, test), feature(coverage_attribute))]
12#![cfg_attr(docsrs, feature(doc_auto_cfg))]
13#![deny(missing_docs)]
14#![deny(unsafe_code)]
15#![deny(unreachable_pub)]
16#![deny(clippy::mod_module_files)]
17
18mod bit_read;
19mod bit_write;
20mod bytes_cursor;
21mod cow;
22mod nal_emulation_prevention;
23pub mod range_check;
24pub mod zero_copy;
25
26pub use bit_read::BitReader;
27pub use bit_write::BitWriter;
28pub use bytes_cursor::{BytesCursor, BytesCursorExt};
29pub use cow::bytes::BytesCow;
30pub use cow::string::StringCow;
31#[cfg(feature = "serde")]
32pub use cow::string::serde::StringCowDeserializer;
33pub use nal_emulation_prevention::EmulationPreventionIo;
34
35/// Changelogs generated by [scuffle_changelog]
36#[cfg(feature = "docs")]
37#[scuffle_changelog::changelog]
38pub mod changelog {}