Now powerloader::Context can only have one instance live at any time, but it is not accessible through global access.
This helps for testing, avoiding static-init/delete-fiasco and constraining access to read-only of that instance when it make sense.
Note that right now this relies on https://github.com/mamba-org/powerloader/pull/95 being merged first which is why it have the same commits as a base. I'll set this PR as non-draft once that PR is merged.
Now
powerloader::Context
can only have one instance live at any time, but it is not accessible through global access. This helps for testing, avoiding static-init/delete-fiasco and constraining access to read-only of that instance when it make sense.Note that right now this relies on https://github.com/mamba-org/powerloader/pull/95 being merged first which is why it have the same commits as a base. I'll set this PR as non-draft once that PR is merged.