aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/macro.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2024-11-11 01:02:09 -0700
committerMelody Horn <melody@boringcactus.com>2024-11-11 01:02:09 -0700
commite0d7617722b5c22d33b89691d389706455d8c850 (patch)
tree6bfbd68458c1008e6f0bd6ecdc6357a2d44d2f38 /src/makefile/macro.rs
parentec2c18171cd316a8b1f69baf92f67980820dfc9a (diff)
downloadmakers-e0d7617722b5c22d33b89691d389706455d8c850.tar.gz
makers-e0d7617722b5c22d33b89691d389706455d8c850.zip
fix with no default features
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r--src/makefile/macro.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index fb0367b..d652fdb 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -1,4 +1,5 @@
use std::collections::HashMap;
+#[cfg(feature = "full")]
use std::collections::HashSet;
use std::env;
use std::fmt;
@@ -8,11 +9,11 @@ use std::io::BufRead;
#[cfg(feature = "full")]
use super::eval_context::DeferredEvalContext;
-use super::ItemSource;
-use super::{MacroScopeStack, TokenString};
+use super::{ItemSource, TokenString};
+#[cfg(feature = "full")]
+use super::MacroScopeStack;
+#[cfg(feature = "full")]
use eyre::Result;
-#[cfg(not(feature = "full"))]
-use regex::Regex;
#[derive(Debug, Clone)]
pub struct Macro {
@@ -253,6 +254,8 @@ mod test {
use super::*;
#[cfg(feature = "full")]
use crate::makefile::functions::NO_EVAL;
+ use crate::MacroScopeStack;
+ use eyre::Result;
type R = Result<()>;