Skip to content

Commit e2c6c3a

Browse files
authored
Merge pull request #5 from timholy/teh/precompiletools
Migrate from SnoopPrecompile to PrecompileTools
2 parents 43635fc + 794fd0a commit e2c6c3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Luxor = "ae8d54c2-7ccd-5906-9d76-62fc9837b5bc"
1111
R2R_jll = "1e27f72a-4876-5c10-8678-3341fdb8ba55"
1212
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1313
Scratch = "6c6a2e73-6563-6170-7368-637461726353"
14-
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
14+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1515
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1616
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
1717
ViennaRNA = "05a721ad-238d-4945-8c85-8b5c1fff3465"
@@ -24,7 +24,7 @@ Luxor = "3.3"
2424
R2R_jll = "=1.0.6"
2525
Requires = "1.3"
2626
Scratch = "1.1"
27-
SnoopPrecompile = "1"
27+
PrecompileTools = "1"
2828
UnicodePlots = "3"
2929
ViennaRNA = "0.9,0.10"
3030
julia = "1.6"

src/PlotRNA.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module PlotRNA
22

3-
using SnoopPrecompile: @precompile_all_calls
3+
using PrecompileTools: @compile_workload
44
using Requires: @require
55

66
export VARNA, R2R, plot_structure
@@ -14,7 +14,7 @@ include("plot_structure.jl")
1414
include("varna.jl")
1515
include("r2r.jl")
1616

17-
@precompile_all_calls begin
17+
@compile_workload begin
1818
plot_structure("(((...)))")
1919
plot_structure("(((...)))"; sequence="GGGAAACCC")
2020
# TODO: how to precompile but using @require from Requires.jl?

0 commit comments

Comments
 (0)