From 3f3e1118ac8bde0114e3b907b5f0221208940750 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Mon, 28 Aug 2023 00:12:42 -0400 Subject: [PATCH] turn on conditional compilation for `geocode` for version info and update_cache_info macro --- src/util.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util.rs b/src/util.rs index 03372e68d..706b5156c 100644 --- a/src/util.rs +++ b/src/util.rs @@ -150,6 +150,8 @@ pub fn version() -> String { enabled_features.push_str("foreach;"); #[cfg(all(feature = "generate", not(feature = "lite")))] enabled_features.push_str("generate;"); + #[cfg(all(feature = "geocode", not(feature = "lite")))] + enabled_features.push_str("geocode;"); #[cfg(all(feature = "luau", not(feature = "lite")))] { @@ -344,7 +346,7 @@ pub fn finish_progress(progress: &ProgressBar) { } } -#[cfg(all(any(feature = "apply", feature = "fetch"), not(feature = "lite")))] +#[cfg(all(any(feature = "apply", feature = "fetch", feature = "geocode"), not(feature = "lite")))] macro_rules! update_cache_info { ($progress:expr, $cache_instance:expr) => { use cached::Cached; @@ -376,7 +378,7 @@ macro_rules! update_cache_info { }; } -#[cfg(all(any(feature = "apply", feature = "fetch"), not(feature = "lite")))] +#[cfg(all(any(feature = "apply", feature = "fetch", feature="geocode"), not(feature = "lite")))] pub(crate) use update_cache_info; pub fn get_args(usage: &str, argv: &[&str]) -> CliResult