Various code simplification around `dub.selections.json` (#2311)
* Deprecate unused Json constructor

* Trivial: Fix import order in dub.project

* Simplify DependencyResolver filtering

DependencyResolver is only instantiated from one place, and never re-used.
It makes more sense to set those variables in the constructor,
and avoid repeatedly calling a single function.

* Move file format to dub.selections.json to its own struct

Our goal is to replace the handcrafted JSON code with configy.
1 parent 9ca1fa9 commit fd844ebabd03888f668607feeca3632ae60902d1
@Mathias LANG Mathias LANG authored on 15 Jul 2022
GitHub committed on 15 Jul 2022
Showing 4 changed files
View
build-files.txt
View
source/dub/dub.d
View
source/dub/project.d
View
source/dub/recipe/selection.d 0 → 100644