qubit_codec_binary/lib.rs
1// =============================================================================
2// Copyright (c) 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8
9//! # Qubit Binary Codec
10//!
11//! Buffer-oriented binary codecs for Rust.
12//!
13//! This crate provides fixed-width scalar, LEB128, and ZigZag codecs for
14//! caller-managed byte buffers. Stream-oriented readers and writers live in
15//! `qubit-io-binary`.
16
17mod codec;
18
19pub use codec::BinaryCodec;
20pub use codec::Leb128Codec;
21pub use codec::Leb128DecodeError;
22pub use codec::Leb128DecodeErrorKind;
23pub use codec::Leb128DecodePolicy;
24pub use codec::NonStrict;
25pub use codec::Strict;
26pub use codec::ZigZagCodec;