codex_percent/
lib.rs

1#![warn(
2    clippy::unwrap_used,
3    missing_docs,
4    rust_2018_idioms,
5    unused_lifetimes,
6    unused_qualifications
7)]
8#![allow(clippy::single_match, rustdoc::bare_urls)]
9#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
10#![doc = include_str!("../README.md")]
11
12#[cfg(all(feature = "alloc", not(feature = "std")))]
13extern crate alloc;
14
15//---------------------------------------------------------
16// Re-exports on external types we may use
17//---------------------------------------------------------
18
19//---------------------------------------------------------
20// Error types
21//---------------------------------------------------------
22
23mod error;
24pub use error::*;
25
26//---------------------------------------------------------
27// pub types
28//---------------------------------------------------------
29
30mod types;
31#[cfg(any(feature = "encode", feature = "decode"))]
32pub use types::*;
33
34//--------------------------------------------------------
35// Encoding implementations with type conversions
36//--------------------------------------------------------
37
38#[cfg(feature = "encode")]
39pub(crate) mod encode;
40
41//--------------------------------------------------------
42// Builder implementations with type conversions
43//--------------------------------------------------------
44
45#[cfg(feature = "decode")]
46pub(crate) mod decode;