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//! Reusable byte and text codecs for Rust applications.
13//!
14//! This crate focuses on stable textual encodings such as hexadecimal,
15//! Base64, percent encoding, and `application/x-www-form-urlencoded` strings.
16//!
17
18#![deny(missing_docs)]
19#![deny(unsafe_op_in_unsafe_fn)]
20
21mod base64_codec;
22mod codec;
23mod codec_error;
24mod decoder;
25mod encoder;
26mod form_urlencoded_codec;
27mod hex_codec;
28mod percent_codec;
29
30pub use base64_codec::Base64Codec;
31pub use codec::Codec;
32pub use codec_error::{
33 CodecError,
34 CodecResult,
35};
36pub use decoder::Decoder;
37pub use encoder::Encoder;
38pub use form_urlencoded_codec::FormUrlencodedCodec;
39pub use hex_codec::HexCodec;
40pub use percent_codec::PercentCodec;