Commit b8bd7ab
Move RecipesBase and RuntimeGeneratedFunctions to extensions
This commit moves RecipesBase and RuntimeGeneratedFunctions from direct
dependencies to weak dependencies with corresponding extensions, reducing
the load time footprint of SciMLBase.
Changes:
- Moved RecipesBase from deps to weakdeps in Project.toml
- Moved RuntimeGeneratedFunctions from deps to weakdeps in Project.toml
- Created SciMLBaseRecipesBaseExt.jl extension containing all @recipe definitions
- Created SciMLBaseRuntimeGeneratedFunctionsExt.jl extension with numargs method
- Removed RecipesBase import from main SciMLBase.jl module
- Removed RuntimeGeneratedFunctions import from main SciMLBase.jl module
- Removed all @recipe function definitions from original source files
- Removed numargs method for RuntimeGeneratedFunctions from utils.jl
The plotting functionality is now only available when RecipesBase is explicitly
loaded, maintaining backward compatibility while reducing the default dependency
footprint. The RuntimeGeneratedFunctions support for numargs is similarly
conditional.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 5edf434 commit b8bd7ab
File tree
8 files changed
+524
-384
lines changed- ext
- src
- ensemble
- solutions
8 files changed
+524
-384
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments