Skip to content

Commit e3bd6d0

Browse files
committed
Make ChainRulesCore a direct dependency
1 parent a8f1aad commit e3bd6d0

File tree

11 files changed

+8
-361
lines changed

11 files changed

+8
-361
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ research/
1212
/examples/.ipynb_checkpoints
1313
.vscode
1414
/issue_debug
15-
Manifest.toml
15+
Manifest.toml
16+
test/Manifest.toml

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ version = "0.10.6"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
8+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
89
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
910
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1011

src/ComponentArrays.jl

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

3+
import ChainRulesCore
4+
35
using ArrayInterface
46
using LinearAlgebra
57
using Requires
@@ -41,8 +43,10 @@ include("show.jl")
4143
include("plot_utils.jl")
4244
export labels, label2index
4345

46+
include("compat/chainrulescore.jl")
47+
4448

45-
required(filename) = include(joinpath("if_required", filename))
49+
required(filename) = include(joinpath("compat", filename))
4650

4751
function __init__()
4852
@require ConstructionBase="187b0558-2788-49d3-abe0-74a17ed4e7c9" required("constructionbase.jl")
@@ -52,7 +56,6 @@ function __init__()
5256
@require SciMLBase="0bca4576-84f4-4d90-8ffe-ffa030f20462" required("scimlbase.jl")
5357
@require RecursiveArrayTools="731186ca-8d62-57ce-b412-fbd966d074cd" required("recursivearraytools.jl")
5458
@require StaticArrays="90137ffa-7385-5640-81b9-e52037218182" required("staticarrays.jl")
55-
@require ChainRulesCore="d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" required("chainrulescore.jl")
5659
@require ReverseDiff="37e2e3b7-166d-5795-8a7a-e32c996b4267" required("reversediff.jl")
5760
end
5861

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)