Skip to main content

qubit_codec_misc/
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//! # qubit-codec-misc
9//!
10//! Reusable byte and text codecs for Rust applications.
11//!
12//! This crate focuses on stable textual encodings such as hexadecimal,
13//! Base64, percent encoding, and `application/x-www-form-urlencoded` strings.
14
15#![deny(missing_docs)]
16#![deny(unsafe_op_in_unsafe_fn)]
17
18mod base64_codec;
19mod base64_decoder;
20mod base64_encoder;
21mod base64_error_kind;
22mod base64_quantum_codec;
23mod c_integer_literal_codec;
24mod c_string_literal_codec;
25mod form_urlencoded_codec;
26mod hex;
27mod hex_byte_codec;
28mod hex_codec_config;
29mod internal;
30mod misc_error;
31mod percent;
32
33pub use base64_codec::Base64Codec;
34pub use base64_decoder::Base64Decoder;
35pub use base64_encoder::Base64Encoder;
36pub use base64_error_kind::Base64ErrorKind;
37pub use base64_quantum_codec::Base64QuantumCodec;
38pub use c_integer_literal_codec::CIntegerLiteralCodec;
39pub use c_string_literal_codec::CStringLiteralCodec;
40pub use form_urlencoded_codec::FormUrlencodedCodec;
41pub use hex::HexCodec;
42pub use hex_byte_codec::HexByteCodec;
43pub use hex_codec_config::HexCodecConfig;
44pub use misc_error::MiscCodecError;
45pub use misc_error::MiscCodecResult;
46pub use percent::PercentCodec;