diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-01 23:10:10 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-01 23:10:10 -0600 |
commit | d12f9f563968ea8471b4929936ac4f8553810428 (patch) | |
tree | 39f8f42eb840c32acb542bfc6314e2950e1e17e0 /src/makefile/macro.rs | |
parent | 543124c62c8123bd67e90bbc710aa064c6c5e271 (diff) | |
download | makers-d12f9f563968ea8471b4929936ac4f8553810428.tar.gz makers-d12f9f563968ea8471b4929936ac4f8553810428.zip |
put extensions behind a feature
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r-- | src/makefile/macro.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs index e760282..bb4a72d 100644 --- a/src/makefile/macro.rs +++ b/src/makefile/macro.rs @@ -5,6 +5,7 @@ use std::fmt; use eyre::{bail, Result, WrapErr}; use regex::Regex; +#[cfg(feature = "full")] use super::functions; use super::token::{Token, TokenString}; @@ -71,6 +72,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> { self.data.insert(name, (source, text)); } + #[cfg(feature = "full")] pub fn is_defined(&self, name: &str) -> bool { self.data.contains_key(name) } @@ -113,6 +115,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> { }; result.push_str(¯o_value); } + #[cfg(feature = "full")] Token::FunctionCall { name, args } => { result.push_str(&functions::expand_call(name, args, self)?); } @@ -129,6 +132,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> { } } + #[cfg(feature = "full")] pub fn with_overlay<'s>(&'s self) -> Set<'s, 'lookup> { Set { parent: Some(self), |