seddonm1 commented on a change in pull request #9567: URL: https://github.com/apache/arrow/pull/9567#discussion_r585028643
########## File path: rust/datafusion/src/physical_plan/functions.rs ########## @@ -447,6 +446,26 @@ pub fn return_type( } } +#[cfg(feature = "crypto_expressions")] +macro_rules! invoke_if_crypto_expressions_feature_flag { + ($FUNC:ident, $NAME:expr) => {{ + use crate::physical_plan::crypto_expressions; + crypto_expressions::$FUNC + }}; +} + +#[cfg(not(feature = "crypto_expressions"))] Review comment: @elferherrera I tried this but unfortunately the compiler does not like it. The `#[cfg]` tag does not operate on `{..}` blocks. The end-state of this was my least-bad solution. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org