1#![cfg_attr(all(not(test), not(feature="std")), no_std)]
2
3#![forbid(unsafe_code)]
4
5#[cfg(not(any(feature="der", feature="pem")))]
6compile_error!("it is necessary to enable at least one of the required features (der or pem); otherwise, this crate will be devoid of content.");
7
8#[cfg(feature="der")]
9use const_decoder2::decode_base64 as b64;
10
11#[cfg(feature="der")]
12pub mod der;
13#[cfg(feature="der")]
14pub use der::*;
15#[cfg(feature="der")]
16pub const DER_LIST_LEN: usize = DER_LIST.len();
17
18#[cfg(feature="rustls")]
19pub mod rustls;
20#[cfg(feature="rustls")]
21pub use rustls::*;
22
23#[cfg(feature="pem")]
24pub mod pem;
25#[cfg(feature="pem")]
26pub use pem::*;
27#[cfg(feature="pem")]
28pub const PEM_LIST_LEN: usize = PEM_LIST.len();
29
30#[cfg(feature="x509cert")]
31pub mod x509cert;
32#[cfg(feature="x509cert")]
33pub use x509cert::*;
34
35#[cfg(feature="x509-certificate")]
36pub mod x509_certificate;
37#[cfg(feature="x509-certificate")]
38pub use x509_certificate::*;
39
40#[cfg(feature="native-tls")]
41pub mod native_tls;
42#[cfg(feature="native-tls")]
43pub use native_tls::*;
44
45#[cfg(all(feature="security-framework", target_vendor="apple"))]
46pub mod security_framework;
47#[cfg(all(feature="security-framework", target_vendor="apple"))]
48pub use security_framework::*;
49
50#[cfg(all(feature="schannel", target_os="windows"))]
51pub mod schannel;
52#[cfg(all(feature="schannel", target_os="windows"))]
53pub use schannel::*;
54
55#[cfg(test)]
56mod test;
57