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 c_string_literal_codec;
23mod codec;
24mod codec_error;
25mod decoder;
26mod encoder;
27mod form_urlencoded_codec;
28mod hex_codec;
29mod percent_codec;
30
31pub use base64_codec::Base64Codec;
32pub use c_string_literal_codec::CStringLiteralCodec;
33pub use codec::Codec;
34pub use codec_error::{
35 CodecError,
36 CodecResult,
37};
38pub use decoder::Decoder;
39pub use encoder::Encoder;
40pub use form_urlencoded_codec::FormUrlencodedCodec;
41pub use hex_codec::HexCodec;
42pub use percent_codec::PercentCodec;