diff options
author | Melody Horn <melody@boringcactus.com> | 2024-11-11 01:02:09 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-11-11 01:02:09 -0700 |
commit | e0d7617722b5c22d33b89691d389706455d8c850 (patch) | |
tree | 6bfbd68458c1008e6f0bd6ecdc6357a2d44d2f38 /src/makefile/macro_scope.rs | |
parent | ec2c18171cd316a8b1f69baf92f67980820dfc9a (diff) | |
download | makers-e0d7617722b5c22d33b89691d389706455d8c850.tar.gz makers-e0d7617722b5c22d33b89691d389706455d8c850.zip |
fix with no default features
Diffstat (limited to 'src/makefile/macro_scope.rs')
-rw-r--r-- | src/makefile/macro_scope.rs | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/makefile/macro_scope.rs b/src/makefile/macro_scope.rs index 045d6f7..9edab95 100644 --- a/src/makefile/macro_scope.rs +++ b/src/makefile/macro_scope.rs @@ -1,15 +1,23 @@ -use super::eval_context::DeferredEvalContext; -use super::functions; -use super::token::Token; -use super::{ItemSource, LookupInternal, Macro, MacroSet, TokenString}; -use eyre::Context; -use lazy_static::lazy_static; + use std::borrow::Cow; use std::collections::HashSet; +#[cfg(feature = "full")] use std::io::BufRead; use std::iter; use std::sync::RwLock; +use eyre::Context; +use lazy_static::lazy_static; +#[cfg(not(feature = "full"))] +use regex::Regex; + +#[cfg(feature = "full")] +use super::eval_context::DeferredEvalContext; +#[cfg(feature = "full")] +use super::functions; +use super::token::Token; +use super::{ItemSource, LookupInternal, Macro, MacroSet, TokenString}; + pub trait MacroScope { /// Looks up the macro with the given name and returns it if it exists. /// |