diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 9a112d5a..aef0f573 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ use std::path::{Path, PathBuf}; use anyhow::{anyhow, bail, Context}; +use typst::cache::Cache; use typst::diag::Pass; use typst::env::{Env, FsLoader}; use typst::exec::State; @@ -39,11 +40,12 @@ fn main() -> anyhow::Result<()> { loader.search_system(); let mut env = Env::new(loader); - + let mut cache = Cache::new(); let scope = library::new(); let state = State::default(); - let Pass { output: frames, diags } = typeset(&mut env, &src, &scope, state); + let Pass { output: frames, diags } = + typeset(&mut env, &mut cache, &src, &scope, state); if !diags.is_empty() { let map = LineMap::new(&src); for diag in diags { |
