diff --git a/src/lib.rs b/src/lib.rs index 76911054498..26c27b75104 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,6 +33,7 @@ mod patches; #[cfg(any(esp32, esp32s2, esp32s3, esp32c6, esp32h2))] mod pcnt; +#[cfg(any(feature = "binstart", feature = "libstart"))] mod start; /// If any of the two constants below do not compile, you have not properly setup the rustc cfg flag `espidf_time64`: diff --git a/src/start.rs b/src/start.rs index a9e5a0b1ae3..99f9b6921e2 100644 --- a/src/start.rs +++ b/src/start.rs @@ -1,5 +1,3 @@ -#![cfg(any(feature = "binstart", feature = "libstart"))] - #[cfg(all(feature = "binstart", feature = "libstart"))] compile_error!("Features `binstart` and `libstart` are mutually exclusive.");