Skip to content

Commit

Permalink
Weakdeps for Julia < 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
projekter committed Jul 8, 2024
1 parent f16d9a5 commit 844673a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ version = "1.0.3"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[weakdeps]
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"

[extras]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
Expand Down
10 changes: 10 additions & 0 deletions src/StandardPacked.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ module StandardPacked

using LinearAlgebra, SparseArrays

if !isdefined(Base, :get_extension)
using Requires
end

@static if !isdefined(Base, :get_extension)
function __init__()
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/StandardPackedStaticArrays.jl")
end
end

include("spmatrix.jl")
include("utils.jl")
include("lapack.jl")
Expand Down

0 comments on commit 844673a

Please sign in to comment.