X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fhttp.rs;h=ab162c94e68f2e5d65c9adfcbcd7f3cfb723250f;hb=1d725ca4a022415c85072bc763d50738df863d6d;hp=073ba66b50ce701ec10cdffb14e0ef24401a219f;hpb=9abf7d87da7cd3c36791703715da0b1c42f0116a;p=dnssec-prover diff --git a/src/http.rs b/src/http.rs index 073ba66..ab162c9 100644 --- a/src/http.rs +++ b/src/http.rs @@ -2,12 +2,21 @@ #![deny(missing_docs)] +// const_slice_from_raw_parts was stabilized in 1.64, however we support building on 1.63 as well. +// Luckily, it seems to work fine in 1.63 with the feature flag (and RUSTC_BOOTSTRAP=1) enabled. +#![cfg_attr(feature = "validation", allow(stable_features))] +#![cfg_attr(feature = "validation", feature(const_slice_from_raw_parts))] + extern crate alloc; pub mod rr; pub mod ser; pub mod query; +#[cfg(feature = "validation")] +mod base32; +#[cfg(feature = "validation")] +mod crypto; #[cfg(feature = "validation")] pub mod validation;