diff options
| author | Martin Haug <mhaug@live.de> | 2021-06-29 12:33:24 +0200 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2021-06-29 12:33:24 +0200 |
| commit | 21d919e2d2a38802ba96003597eadb68342d71ef (patch) | |
| tree | 9ec3dd8f08aa29456063ba478520254990578faa /src/cache.rs | |
| parent | 8ea05739afdbe84fc50fe97d780cc6096d8df03d (diff) | |
Put incremental compilation behind feature
Diffstat (limited to 'src/cache.rs')
| -rw-r--r-- | src/cache.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cache.rs b/src/cache.rs index aa9c10a0..2aa276aa 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -2,6 +2,7 @@ use crate::font::FontCache; use crate::image::ImageCache; +#[cfg(feature = "layout-cache")] use crate::layout::LayoutCache; use crate::loading::Loader; @@ -12,6 +13,7 @@ pub struct Cache { /// Caches decoded images. pub image: ImageCache, /// Caches layouting artifacts. + #[cfg(feature = "layout-cache")] pub layout: LayoutCache, } @@ -21,6 +23,7 @@ impl Cache { Self { font: FontCache::new(loader), image: ImageCache::new(), + #[cfg(feature = "layout-cache")] layout: LayoutCache::new(), } } |
