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

Use PrecompileTools #65

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/test/Manifest.toml
/benchmark/Manifest.toml
/dev/
.vscode/settings.json
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ version = "0.8.11"
[deps]
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"

[compat]
Crayons = "4"
JSON = "0.20, 0.21"
SnoopPrecompile = "1"
PrecompileTools = "1"
URIs = "1.1"
julia = "1"

Expand Down
6 changes: 3 additions & 3 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using SnoopPrecompile
using PrecompileTools

@precompile_setup begin
@setup_workload begin
# All non-default rules
extension_rules = [
AdmonitionRule,
Expand All @@ -18,7 +18,7 @@ using SnoopPrecompile
writers = [
html, latex, term, markdown, notebook
]
@precompile_all_calls begin
@compile_workload begin
parser = Parser()
for rule in extension_rules
enable!(parser, rule())
Expand Down