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
#![deny(missing_docs)]
#![cfg_attr(feature = "cargo-clippy", deny(clippy::all))]
#![cfg_attr(feature = "cargo-clippy", deny(clippy::pedantic))]
#![cfg_attr(not(doc), no_std)]
#[cfg(test)]
use static_alloc::Bump;
#[cfg(test)]
#[global_allocator]
static ALLOC: Bump<[u8; 1 << 28]> = Bump::uninit();
#[macro_use]
extern crate alloc;
use core::result;
pub mod ber;
mod error;
pub mod simple;
pub use error::TlvError;
type Result<T> = result::Result<T, TlvError>;