codex_percent/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#![warn(
    clippy::unwrap_used,
    missing_docs,
    rust_2018_idioms,
    unused_lifetimes,
    unused_qualifications
)]
#![allow(clippy::single_match, rustdoc::bare_urls)]
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
#![doc = include_str!("../README.md")]

#[cfg(all(feature = "alloc", not(feature = "std")))]
extern crate alloc;

//---------------------------------------------------------
// Re-exports on external types we may use
//---------------------------------------------------------

//---------------------------------------------------------
// Error types
//---------------------------------------------------------

mod error;
pub use error::*;

//---------------------------------------------------------
// pub types
//---------------------------------------------------------

mod types;
#[cfg(any(feature = "encode", feature = "decode"))]
pub use types::*;

//--------------------------------------------------------
// Encoding implementations with type conversions
//--------------------------------------------------------

#[cfg(feature = "encode")]
pub(crate) mod encode;

//--------------------------------------------------------
// Builder implementations with type conversions
//--------------------------------------------------------

#[cfg(feature = "decode")]
pub(crate) mod decode;