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::{
20 BinaryCodec,
21 Leb128Codec,
22 Leb128DecodeError,
23 Leb128DecodeErrorKind,
24 Leb128DecodePolicy,
25 NonStrict,
26 Strict,
27 ZigZagCodec,
28};