Skip to content

Commit

Permalink
Use comemo re-export
Browse files Browse the repository at this point in the history
  • Loading branch information
IgKh committed Mar 1, 2025
1 parent b6ccf36 commit 6d03e55
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion typstdriver/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion typstdriver/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ crate-type = ["staticlib"]
[dependencies]
cxx = "1.0"

comemo = "0.4.0"
typst = "0.13.0"
typst-pdf = "0.13.0"
typst-render = "0.13.0"
Expand Down
2 changes: 2 additions & 0 deletions typstdriver/rust/src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub(crate) mod ffi {
#[rust_name = "log_note"]
fn logNote(&self, message: &str);

#[allow(clippy::too_many_arguments)]
#[rust_name = "log_warning"]
fn logWarning(
&self,
Expand All @@ -80,6 +81,7 @@ pub(crate) mod ffi {
hints: Vec<&str>,
);

#[allow(clippy::too_many_arguments)]
#[rust_name = "log_error"]
fn logError(
&self,
Expand Down
2 changes: 1 addition & 1 deletion typstdriver/rust/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl<'a> EngineImpl<'a> {
.log_note(&format!("compiled with warnings in {elapsed}"));
}

comemo::evict(5);
typst::comemo::evict(3);

let pages = doc
.pages
Expand Down

0 comments on commit 6d03e55

Please # to comment.