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;
18pub mod prelude;
19
20pub use codec::{
21 BinaryCodec,
22 Leb128Codec,
23 Leb128DecodeError,
24 Leb128DecodeErrorKind,
25 Leb128DecodePolicy,
26 NonStrict,
27 Strict,
28 ZigZagCodec,
29};
30pub use qubit_codec::{
31 BigEndian,
32 ByteOrder,
33 ByteOrderSpec,
34 Codec,
35 LittleEndian,
36};