diff --git a/Cargo.toml b/Cargo.toml index bd19297..b64fb50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,4 +40,4 @@ inherits = "release" debug = true [package.metadata.docs.rs] -all-features = true \ No newline at end of file +all-features = true diff --git a/src/lib.rs b/src/lib.rs index 8f03b6d..09f64a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,7 @@ )] #![forbid(unsafe_code)] #![feature(portable_simd, avx512_target_feature)] +#![feature(doc_cfg)] #[cfg(feature = "complex-nums")] use crate::utils::{combine_re_im, deinterleave_complex32, deinterleave_complex64}; @@ -90,8 +91,10 @@ macro_rules! impl_fft_interleaved_for { }; } +#[doc(cfg(feature = "complex-nums"))] #[cfg(feature = "complex-nums")] impl_fft_interleaved_for!(fft_32_interleaved, f32, fft_32, deinterleave_complex32); +#[doc(cfg(feature = "complex-nums"))] #[cfg(feature = "complex-nums")] impl_fft_interleaved_for!(fft_64_interleaved, f64, fft_64, deinterleave_complex64);