#![no_std]
#![cfg_attr(
all(
feature = "nightly-features",
target_arch = "x86_64",
target_feature = "avx512f"
),
feature(stdarch_x86_avx512)
)]
extern crate alloc;
mod extension;
mod goldilocks;
mod mds;
mod poseidon2;
pub use goldilocks::*;
pub use mds::*;
pub use poseidon2::*;
#[cfg(all(
target_arch = "x86_64",
target_feature = "avx2",
not(all(feature = "nightly-features", target_feature = "avx512f"))
))]
mod x86_64_avx2;
#[cfg(all(
target_arch = "x86_64",
target_feature = "avx2",
not(all(feature = "nightly-features", target_feature = "avx512f"))
))]
pub use x86_64_avx2::*;
#[cfg(all(
feature = "nightly-features",
target_arch = "x86_64",
target_feature = "avx512f"
))]
mod x86_64_avx512;
#[cfg(all(
feature = "nightly-features",
target_arch = "x86_64",
target_feature = "avx512f"
))]
pub use x86_64_avx512::*;