Provide readable errors when we fail to build proofs
[dnssec-prover] / src / lib.rs
index 91a315678f18f107a1a1e955e5c636121f9bc1db..27421ed828174a74f6c9fe8aa21c19077910bb40 100644 (file)
 #![deny(rustdoc::broken_intra_doc_links)]
 #![deny(rustdoc::private_intra_doc_links)]
 
-// 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(rust_1_63, feature(const_slice_from_raw_parts))]
-
 #![allow(clippy::new_without_default)] // why is this even a lint
 #![allow(clippy::result_unit_err)] // Why in the hell is this a lint?
 #![allow(clippy::get_first)] // Sometimes this improves readability
 #![cfg_attr(not(feature = "std"), no_std)]
 extern crate alloc;
 
+/// The maximum number of requests we will make when building a proof or the maximum number of
+/// [`rr::RRSig`] sets we'll validate records from when validating proofs.
+// Note that this is duplicated exactly in src/http.rs
+pub const MAX_PROOF_STEPS: usize = 20;
+
 #[cfg(feature = "validation")]
 mod base32;