Skip to content

Commit

Permalink
Merge pull request #172 from longemen3000/dep-trimming-and-ext
Browse files Browse the repository at this point in the history
Remove as much dependencies as possible
  • Loading branch information
rofinn authored Aug 25, 2024
2 parents 39587a1 + 4880e45 commit 25bbdb9
Show file tree
Hide file tree
Showing 9 changed files with 426 additions and 324 deletions.
16 changes: 12 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@ version = "0.9.21"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[weakdeps]
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[extensions]
FilePathsBaseMmapExt = "Mmap"
FilePathsBaseTestExt = "Test"

[compat]
Compat = "3.33, 4"
julia = "1"
Mmap = "<0.0.1, 1"
Compat = "3.33, 4"

[extras]
JLSO = "9da8a3cd-07a3-59c0-a743-3fdc52c30d11"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"

[targets]
test = ["JLSO", "Test"]
test = ["JLSO", "Mmap", "Test"]
7 changes: 7 additions & 0 deletions ext/FilePathsBaseMmapExt.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module FilePathsBaseMmapExt
using Mmap
using FilePathsBase

Mmap.mmap(fp::FilePathsBase.SystemPath, args...; kwargs...) = Mmap.mmap(string(fp), args...; kwargs...)

end #module
Loading

0 comments on commit 25bbdb9

Please sign in to comment.