diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-19 15:03:43 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-19 15:19:12 +0200 |
| commit | bb59f0e2b21c42a796b5eb8d8882a1d2b2a0c35f (patch) | |
| tree | e55db10e9ec146cda10b5f3ff91caff55002d674 /crates/typst-cli/src/compile.rs | |
| parent | 13758b9c9795d7d6d2fa9551a8936e0f0ff27136 (diff) | |
Incremental parsing in CLI
Reparses files in the CLI incrementally and also uses the file modification timestamp to completely skip reparsing if possible.
Diffstat (limited to 'crates/typst-cli/src/compile.rs')
| -rw-r--r-- | crates/typst-cli/src/compile.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs index 49a6b6eb..2962355e 100644 --- a/crates/typst-cli/src/compile.rs +++ b/crates/typst-cli/src/compile.rs @@ -75,8 +75,7 @@ pub fn compile_once( Status::Compiling.print(command).unwrap(); } - // Reset everything and ensure that the main file is present. - world.reset(); + // Ensure that the main file is present. world.source(world.main()).map_err(|err| err.to_string())?; let mut tracer = Tracer::new(); |
