Skip to content

Commit

Permalink
turn on conditional compilation for geocode for version info and up…
Browse files Browse the repository at this point in the history
…date_cache_info macro
  • Loading branch information
jqnatividad committed Aug 28, 2023
1 parent 887f3b8 commit 3f3e111
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))]
{
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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<T>(usage: &str, argv: &[&str]) -> CliResult<T>
Expand Down

0 comments on commit 3f3e111

Please sign in to comment.