serde_encoded_bytes/
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
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![doc = include_str!("../README.md")]
#![warn(
    clippy::mod_module_files,
    clippy::unwrap_used,
    clippy::indexing_slicing,
    missing_docs,
    rust_2018_idioms,
    trivial_casts,
    trivial_numeric_casts,
    unused_qualifications
)]

extern crate alloc;

mod containers;
mod encoding;
mod low_level;

#[cfg(test)]
mod tests;

pub use containers::{ArrayLike, BoxedArrayLike, SliceLike};
pub use encoding::Encoding;
pub use low_level::{TryFromArray, TryFromSliceRef};

// Specifically enable `Hex` for tests, since we need some encoding to be specified.
// Should be removed when https://github.com/rust-lang/cargo/issues/2911 is fixed.
#[cfg(any(feature = "hex", test))]
pub use encoding::Hex;

#[cfg(feature = "base64")]
pub use encoding::Base64;