Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache templates compiled by proc-macro #125

Merged
merged 2 commits into from
Jul 28, 2023

Commits on Jun 21, 2023

  1. Cache templates compiled by proc-macro

    Instead of recompiling sailfish templates on every proc-macro
    invocation, see if an output file for the same input file content +
    compiler config combination already exists.
    
    This also fixes rust-sailfish#58 because it avoids multiple proc-macro invocations
    writing to the same output file at roughly the same time from different
    processes, for example in clippy checks that execute in parallel.
    
    In addition to the compiled output, now the list of dependencies (file
    names), which was previously generated by the compiler for each template
    on every proc-macro invocation, needs to be stored to disk for re-use.
    w-flo committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    935bc8e View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Configuration menu
    Copy the full SHA
    6e6dc93 View commit details
    Browse the repository at this point in the history