Skip to content

Commit

Permalink
Merge pull request #65 from MichaelHatherly/mh/PrecompileTools
Browse files Browse the repository at this point in the history
Use `PrecompileTools`
  • Loading branch information
MichaelHatherly committed Apr 27, 2023
2 parents 4f6f1aa + 7a63ca6 commit ce9f892
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
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

0 comments on commit ce9f892

Please sign in to comment.