tracelogging
tracelogging copied to clipboard
register() and unregister() as guard
I was wondering whether the unsafe {} for Provider registering could be removed by making use of the type system, so you get a handle object that unregisters the provider upon getting dropped. so not dropping the static provider, but dropping a handle struct that calls unregister() on drop