diff --git a/tfhe/src/lib.rs b/tfhe/src/lib.rs index 5cee53e31b..e539665bd9 100644 --- a/tfhe/src/lib.rs +++ b/tfhe/src/lib.rs @@ -2,6 +2,9 @@ //! //! TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE. +// Enable all warnings in doctests +// https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#showing-warnings-in-doctests +#![doc(test(attr(warn(unused))))] // Enable pedantic lints #![warn(clippy::pedantic)] // The following lints have been temporarily allowed