Avoid overriding $RUSTFLAGS when needed for rustc 1.63
[dnssec-prover] / src / lib.rs
index c402a720bd49e3b512d34c1db084b10a32ba743c..4cf920da84cf423bb0eb70ddaebdb735b765576f 100644 (file)
@@ -37,6 +37,9 @@
 // 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
 #![allow(clippy::needless_lifetimes)] // lifetimes improve readability
 #![allow(clippy::needless_borrow)] // borrows indicate read-only/non-move
 #![allow(clippy::too_many_arguments)] // sometimes we don't have an option
 #![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;