Applied @pinkforest's patch to make make doc build on non-x86_64 arches

This commit is contained in:
Michael Rosenberg 2022-11-26 13:53:51 -05:00
parent 791ba170b1
commit 01672bfc63
No known key found for this signature in database

View file

@ -16,24 +16,24 @@ compile_error!("simd_backend selected without target_feature=+avx2 or +avx512ifm
#[cfg(any(
all(target_feature = "avx2", not(target_feature = "avx512ifma")),
docsrs
all(docsrs, target_arch = "x86_64")
))]
pub mod avx2;
#[cfg(any(
all(target_feature = "avx2", not(target_feature = "avx512ifma")),
docsrs
all(docsrs, target_arch = "x86_64")
))]
pub(crate) use self::avx2::{
constants::BASEPOINT_ODD_LOOKUP_TABLE, edwards::CachedPoint, edwards::ExtendedPoint,
};
#[cfg(any(target_feature = "avx512ifma", docsrs))]
#[cfg(any(target_feature = "avx512ifma", all(docsrs, target_arch = "x86_64")))]
pub mod ifma;
#[cfg(target_feature = "avx512ifma")]
pub(crate) use self::ifma::{
constants::BASEPOINT_ODD_LOOKUP_TABLE, edwards::CachedPoint, edwards::ExtendedPoint,
};
#[cfg(any(target_feature = "avx2", target_feature = "avx512ifma", docsrs))]
#[cfg(any(target_feature = "avx2", target_feature = "avx512ifma", all(docsrs, target_arch = "x86_64")))]
#[allow(missing_docs)]
pub mod scalar_mul;