1
0
Fork 0

Add a feature flag to enable doc_auto_cfg

This commit is contained in:
Robbert van der Helm 2022-04-11 16:41:09 +02:00
parent c3b1ded35b
commit 1e12fbe3f5
2 changed files with 3 additions and 0 deletions

View file

@ -40,6 +40,8 @@ assert_process_allocs = ["assert_no_alloc"]
# Add adapters to the Buffer object for reading the channel data to and from
# `std::simd` vectors. Requires a nightly compiler.
simd = []
# Only relevant when generating docs, adds the `doc_auto_cfg` nightly feature
docs = []
[dependencies]
nih_plug_derive = { path = "nih_plug_derive" }

View file

@ -1,6 +1,7 @@
//! Documentation is currently a work in progress. Import everything from the [`prelude`] module and
//! check out the example plugins to get started.
#![cfg_attr(feature = "docs", feature(doc_auto_cfg))]
#![cfg_attr(feature = "simd", feature(portable_simd))]
#[macro_use]