#[cfg_or_panic(..)]
Keep the function body under #[cfg(..)], or replace it with unimplemented!() under #[cfg(not(..))].
Example
use cfg_or_panic;
#[cfg_or_panic(..)]Keep the function body under #[cfg(..)], or replace it with unimplemented!() under #[cfg(not(..))].
use cfg_or_panic;