diff --git a/src/lib.rs b/src/lib.rs index 87b8c00..530614c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,6 +64,7 @@ extern crate serde; #[macro_use] pub(crate) mod macros; +#[allow(unused_imports)] #[cfg(any(feature = "betrusted", test))] #[macro_use] extern crate engine25519_as; diff --git a/src/ristretto.rs b/src/ristretto.rs index d284b5b..b29fd33 100644 --- a/src/ristretto.rs +++ b/src/ristretto.rs @@ -194,6 +194,7 @@ use traits::{MultiscalarMul, VartimeMultiscalarMul, VartimePrecomputedMultiscala feature = "simd_backend", any(target_feature = "avx2", target_feature = "avx512ifma") )))] +#[cfg(not(feature = "betrusted"))] use backend::serial::scalar_mul; #[cfg(all( feature = "simd_backend", diff --git a/src/scalar.rs b/src/scalar.rs index 00de740..773dcb4 100644 --- a/src/scalar.rs +++ b/src/scalar.rs @@ -998,6 +998,7 @@ impl Scalar { /// Returns a size hint indicating how many entries of the return /// value of `to_radix_2w` are nonzero. + #[cfg(not(feature = "betrusted"))] pub(crate) fn to_radix_2w_size_hint(w: usize) -> usize { debug_assert!(w >= 4); debug_assert!(w <= 8);