Skip to main content

vardheim/
lib.rs

1#![no_std]
2#![forbid(unsafe_code)]
3#![doc = "The public Vardheim facade."]
4
5/// Low-level, runtime-independent ACME protocol foundations.
6pub use vardheim_core as core;
7/// ACME challenge families.
8pub mod challenge {
9    /// DNS challenge primitives and provider boundaries.
10    pub use vardheim_challenge_dns as dns;
11    /// HTTP challenge primitives and presentation boundaries.
12    pub use vardheim_challenge_http as http;
13    /// TLS challenge identity primitives.
14    pub use vardheim_challenge_tls as tls;
15}
16
17/// The current facade crate version.
18pub const VERSION: &str = env!("CARGO_PKG_VERSION");
19
20#[cfg(test)]
21mod tests {
22    use super::{VERSION, challenge, core};
23
24    #[test]
25    fn facade_exposes_every_foundation_boundary() {
26        assert_eq!(VERSION, "0.3.1");
27        assert_eq!(core::CRATE_ROLE, "protocol");
28        assert_eq!(challenge::http::HTTP_01, "http-01");
29        assert_eq!(challenge::dns::DNS_01, "dns-01");
30        assert_eq!(challenge::tls::TLS_ALPN_01, "tls-alpn-01");
31    }
32}