X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Flib.rs;h=6c9c577c1a02b438c8e5e440060a15d0d7c87a29;hb=d7bf25b7d6335f250a96036c792ce997a4a7b05d;hp=c7027b0f1a36ad0310348a0c3720a4b3f6c04bf1;hpb=e4503cf90b6ad5ed9edc99389956ceffb1c35502;p=dnssec-prover diff --git a/src/lib.rs b/src/lib.rs index c7027b0..6c9c577 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ //! It is no-std (but requires `alloc`) and seeks to have minimal dependencies and a reasonably //! conservative MSRV policy, allowing it to be used in as many places as possible. //! -//! Most of the crate's logic is feature-gated: +//! Most of the crate's logic is feature-gated, and *all dependencies are optional*: //! * By default, the `validate` feature is set, using `ring` to validate DNSSEC signatures and //! proofs using the [`validation`] module. //! * The `std` feature enables the [`query`] module, allowing for the building of proofs by @@ -26,15 +26,19 @@ //! proofs. #![deny(missing_docs)] +#![deny(rustdoc::broken_intra_doc_links)] +#![deny(rustdoc::private_intra_doc_links)] #![cfg_attr(not(feature = "std"), no_std)] 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; - -#[cfg(feature = "std")] -pub mod query;