Skip to content

Commit

Permalink
Merge pull request #34 from QuState/document-cfg
Browse files Browse the repository at this point in the history
Make required cfg show up on docs.rs
  • Loading branch information
smu160 authored Jul 17, 2024
2 parents 08eedcb + a0c5fc9 commit 7048416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ inherits = "release"
debug = true

[package.metadata.docs.rs]
all-features = true
all-features = true
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -90,8 +91,10 @@ macro_rules! impl_fft_interleaved_for {
};
}

#[doc(cfg(feature = "complex-nums"))]

Check warning on line 94 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test

unused attribute `doc`
#[cfg(feature = "complex-nums")]
impl_fft_interleaved_for!(fft_32_interleaved, f32, fft_32, deinterleave_complex32);
#[doc(cfg(feature = "complex-nums"))]

Check warning on line 97 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test

unused attribute `doc`
#[cfg(feature = "complex-nums")]
impl_fft_interleaved_for!(fft_64_interleaved, f64, fft_64, deinterleave_complex64);

Expand Down

0 comments on commit 7048416

Please sign in to comment.