Skip to main content

qubit_codec/
lib.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2026 Haixing Hu.
4 *
5 *    SPDX-License-Identifier: Apache-2.0
6 *
7 *    Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! # qubit-codec
11//!
12//! Core codec traits and buffer conversion primitives for Rust applications.
13//!
14//! This crate contains only domain-neutral building blocks such as value
15//! codecs, owned encoder/decoder helpers, byte-order markers, and
16//! progress-oriented buffer transcoders. Concrete binary, text, misc, and I/O
17//! adapters live in sibling crates.
18//!
19
20#![deny(missing_docs)]
21#![deny(unsafe_op_in_unsafe_fn)]
22
23mod byte_order;
24mod codec;
25mod decoder;
26mod encoder;
27mod transcoder;
28
29pub mod prelude;
30pub use byte_order::{
31    BigEndian,
32    ByteOrder,
33    ByteOrderSpec,
34    LittleEndian,
35};
36pub use codec::Codec;
37pub use decoder::Decoder;
38pub use encoder::Encoder;
39pub use transcoder::{
40    TranscodeProgress,
41    TranscodeStatus,
42    Transcoder,
43};